matroxfb: replace kmalloc and memset with kzalloc.
Signed-off-by: Alexandru Juncu <alexj@rosedu.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
76e918933d
commit
ce01273fed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue