KS8695: Remove unnecessary memset of netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Thu, 6 May 2010 05:40:29 +0000 (05:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 May 2010 05:10:37 +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 it to 0 again.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ks8695net.c

index 7413a87e40ff402ef074376cea8ee00c05ac1e76..6404704f7eac8d5c8d3b18da32eaeda8e8c6355b 100644 (file)
@@ -1472,7 +1472,6 @@ ks8695_probe(struct platform_device *pdev)
 
        /* Configure our private structure a little */
        ksp = netdev_priv(ndev);
-       memset(ksp, 0, sizeof(struct ks8695_priv));
 
        ksp->dev = &pdev->dev;
        ksp->ndev = ndev;