]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ethoc: Remove unnecessary memset of napi member in netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Thu, 6 May 2010 05:41:12 +0000 (05:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 May 2010 05:10:38 +0000 (22:10 -0700)
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>
drivers/net/ethoc.c

index 6bd03c8b888638aa7d66c0c81eee46c31d688aaf..ad1bc7317df655bce75691dc138927f50e2af6d6 100644 (file)
@@ -1040,7 +1040,6 @@ static int ethoc_probe(struct platform_device *pdev)
        netdev->features |= 0;
 
        /* setup NAPI */
-       memset(&priv->napi, 0, sizeof(priv->napi));
        netif_napi_add(netdev, &priv->napi, ethoc_poll, 64);
 
        spin_lock_init(&priv->rx_lock);