提交 ce01273f 编写于 作者: A Alexandru Juncu 提交者: Tomi Valkeinen

matroxfb: replace kmalloc and memset with kzalloc.

Signed-off-by: NAlexandru Juncu <alexj@rosedu.org>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 76e91893
...@@ -2029,10 +2029,9 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm ...@@ -2029,10 +2029,9 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
return -1; return -1;
} }
minfo = kmalloc(sizeof(*minfo), GFP_KERNEL); minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo) if (!minfo)
return -1; return -1;
memset(minfo, 0, sizeof(*minfo));
minfo->pcidev = pdev; minfo->pcidev = pdev;
minfo->dead = 0; minfo->dead = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册