From: Tobias Klauser Date: Thu, 6 May 2010 05:41:12 +0000 (+0000) Subject: ethoc: Remove unnecessary memset of napi member in netdev private data X-Git-Tag: v2.6.35-rc1~473^2~241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8462d14e471fc5761e37d1b89282966a5b504468;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 6bd03c8..ad1bc73 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -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);