From: Alexandru Juncu Date: Fri, 12 Jul 2013 14:00:18 +0000 (+0300) Subject: matroxfb: replace kmalloc and memset with kzalloc. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce01273fed085809458ca8ce078cc0c5145a3db4;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git matroxfb: replace kmalloc and memset with kzalloc. Signed-off-by: Alexandru Juncu Signed-off-by: Tomi Valkeinen --- 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;