summaryrefslogtreecommitdiffstats
path: root/drivers/video/matrox
diff options
context:
space:
mode:
authorAlexandru Juncu <alexj@rosedu.org>2013-07-12 16:00:18 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-07-26 10:35:17 +0200
commitce01273fed085809458ca8ce078cc0c5145a3db4 (patch)
treeeed32075676188266a0ec9e5140ad7a191d9bc5b /drivers/video/matrox
parentvideo: mxsfb: Let device core handle pinctrl (diff)
downloadlinux-ce01273fed085809458ca8ce078cc0c5145a3db4.tar.xz
linux-ce01273fed085809458ca8ce078cc0c5145a3db4.zip
matroxfb: replace kmalloc and memset with kzalloc.
Signed-off-by: Alexandru Juncu <alexj@rosedu.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/matrox')
-rw-r--r--drivers/video/matrox/matroxfb_base.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
index 401a56e250bd..245652911650 100644
--- a/drivers/video/matrox/matroxfb_base.c
+++ b/drivers/video/matrox/matroxfb_base.c
@@ -2029,10 +2029,9 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
return -1;
}
- minfo = kmalloc(sizeof(*minfo), GFP_KERNEL);
+ minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo)
return -1;
- memset(minfo, 0, sizeof(*minfo));
minfo->pcidev = pdev;
minfo->dead = 0;