aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-05-06 01:41:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-07 01:10:38 -0400
commit8462d14e471fc5761e37d1b89282966a5b504468 (patch)
treecf132682143e276c607f3b72bf114f364d17f86c /drivers
parent079ceb44e9b3432fb8e8f7d08207faae69407c89 (diff)
ethoc: Remove unnecessary memset of napi member in 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 the napi member it to 0 explicitely. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethoc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index 6bd03c8b8886..ad1bc7317df6 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -1040,7 +1040,6 @@ static int ethoc_probe(struct platform_device *pdev)
1040 netdev->features |= 0; 1040 netdev->features |= 0;
1041 1041
1042 /* setup NAPI */ 1042 /* setup NAPI */
1043 memset(&priv->napi, 0, sizeof(priv->napi));
1044 netif_napi_add(netdev, &priv->napi, ethoc_poll, 64); 1043 netif_napi_add(netdev, &priv->napi, ethoc_poll, 64);
1045 1044
1046 spin_lock_init(&priv->rx_lock); 1045 spin_lock_init(&priv->rx_lock);