diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-01-07 01:57:42 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-09 16:32:40 +0100 |
commit | 26fc354914219a91254afd0df573fc801bb1183a (patch) | |
tree | 93cc2dee3031788630522f0d21376f61de698250 /drivers/net | |
parent | [PATCH] sk98lin: error handling on dual port board (diff) | |
download | linux-26fc354914219a91254afd0df573fc801bb1183a.tar.xz linux-26fc354914219a91254afd0df573fc801bb1183a.zip |
[PATCH] sk98lin: use kzalloc
Trivial use of kzalloc.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sk98lin/skge.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c index 87bfe4c24a77..9f89c23191d0 100644 --- a/drivers/net/sk98lin/skge.c +++ b/drivers/net/sk98lin/skge.c @@ -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; |