matroxfb: replace kmalloc and memset with kzalloc.
authorAlexandru Juncu <alexj@rosedu.org>
Fri, 12 Jul 2013 14:00:18 +0000 (17:00 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 26 Jul 2013 08:35:17 +0000 (11:35 +0300)
Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/matrox/matroxfb_base.c

index 401a56e250bd40e3ba484c403ff1975357e202e9..245652911650df88bf5a3d1c05e99599e0e420a2 100644 (file)
@@ -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;