提交 26fc3549 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

[PATCH] sk98lin: use kzalloc

Trivial use of kzalloc.
Signed-off-by: NStephen Hemminger <shemminger@osdl.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 decf67aa
......@@ -4807,14 +4807,13 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
}
pNet = netdev_priv(dev);
pNet->pAC = kmalloc(sizeof(SK_AC), GFP_KERNEL);
pNet->pAC = kzalloc(sizeof(SK_AC), GFP_KERNEL);
if (!pNet->pAC) {
printk(KERN_ERR "Unable to allocate adapter "
"structure!\n");
goto out_free_netdev;
}
memset(pNet->pAC, 0, sizeof(SK_AC));
pAC = pNet->pAC;
pAC->PciDev = pdev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册