aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sk98lin
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sk98lin')
-rw-r--r--drivers/net/sk98lin/skge.c3
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,
4807 } 4807 }
4808 4808
4809 pNet = netdev_priv(dev); 4809 pNet = netdev_priv(dev);
4810 pNet->pAC = kmalloc(sizeof(SK_AC), GFP_KERNEL); 4810 pNet->pAC = kzalloc(sizeof(SK_AC), GFP_KERNEL);
4811 if (!pNet->pAC) { 4811 if (!pNet->pAC) {
4812 printk(KERN_ERR "Unable to allocate adapter " 4812 printk(KERN_ERR "Unable to allocate adapter "
4813 "structure!\n"); 4813 "structure!\n");
4814 goto out_free_netdev; 4814 goto out_free_netdev;
4815 } 4815 }
4816 4816
4817 memset(pNet->pAC, 0, sizeof(SK_AC));
4818 pAC = pNet->pAC; 4817 pAC = pNet->pAC;
4819 pAC->PciDev = pdev; 4818 pAC->PciDev = pdev;
4820 4819