summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-05-06 05:41:31 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-06 22:10:39 -0700
commit627ad5951b5f26585ed11ac3afb2aa4a872aec23 (patch)
treedaff3c911bc6571fe8246b13c92aebcebaf20081
parent8462d14e471fc5761e37d1b89282966a5b504468 (diff)
downloadblackbird-op-linux-627ad5951b5f26585ed11ac3afb2aa4a872aec23.tar.gz
blackbird-op-linux-627ad5951b5f26585ed11ac3afb2aa4a872aec23.zip
smc9194: Remove unnecessary memset of netdev private data
The memory for the private data is allocated using kzalloc in alloc_etherdev (or alloc_netdev_mq respectively) so there is no need to set it to 0 again. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/smc9194.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/smc9194.c b/drivers/net/smc9194.c
index e94521cf70a1..d76c8154f52b 100644
--- a/drivers/net/smc9194.c
+++ b/drivers/net/smc9194.c
@@ -1042,9 +1042,6 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
*/
printk("ADDR: %pM\n", dev->dev_addr);
- /* set the private data to zero by default */
- memset(netdev_priv(dev), 0, sizeof(struct smc_local));
-
/* Grab the IRQ */
retval = request_irq(dev->irq, smc_interrupt, 0, DRV_NAME, dev);
if (retval) {
OpenPOWER on IntegriCloud