summaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-11-08 10:33:41 -0800
committerJeff Garzik <jgarzik@pobox.com>2005-11-08 23:58:08 -0500
commit7e86306113ca9e418e49ff1c7c0984f8ffe8cf61 (patch)
treeb8ea5564e4bf9c3b4ad69b8b02b6513b684f1166 /drivers/net/skge.c
parentadba9e23b4066f1d741a2076fc6ad18b6c0cea44 (diff)
downloadblackbird-op-linux-7e86306113ca9e418e49ff1c7c0984f8ffe8cf61.tar.gz
blackbird-op-linux-7e86306113ca9e418e49ff1c7c0984f8ffe8cf61.zip
[PATCH] skge: use kzalloc
Can use kzalloc in skge driver. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r--drivers/net/skge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index fe806dbc1914..f411c5c80410 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -3168,14 +3168,13 @@ static int __devinit skge_probe(struct pci_dev *pdev,
#endif
err = -ENOMEM;
- hw = kmalloc(sizeof(*hw), GFP_KERNEL);
+ hw = kzalloc(sizeof(*hw), GFP_KERNEL);
if (!hw) {
printk(KERN_ERR PFX "%s: cannot allocate hardware struct\n",
pci_name(pdev));
goto err_out_free_regions;
}
- memset(hw, 0, sizeof(*hw));
hw->pdev = pdev;
spin_lock_init(&hw->phy_lock);
tasklet_init(&hw->ext_tasklet, skge_extirq, (unsigned long) hw);
OpenPOWER on IntegriCloud