dm9000: Remove unnecessary memset of netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Wed, 9 Sep 2009 01:07:44 +0000 (01:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2009 01:54:47 +0000 (18:54 -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/dm9000.c

index a2bc4158259a0b7f84732bacf3d332199361194c..60de17689e64c8c0b1f55452919bd7a3fe3253ef 100644 (file)
@@ -1281,7 +1281,6 @@ dm9000_probe(struct platform_device *pdev)
 
        /* setup board info structure */
        db = netdev_priv(ndev);
-       memset(db, 0, sizeof(*db));
 
        db->dev = &pdev->dev;
        db->ndev = ndev;