Browse Source

matroxfb: replace kmalloc and memset with kzalloc.

Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Alexandru Juncu 12 years ago
parent
commit
ce01273fed
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/video/matrox/matroxfb_base.c

+ 1 - 2
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;