summaryrefslogtreecommitdiff
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-09-09 01:07:44 +0000
committerDavid S. Miller <davem@davemloft.net>2009-09-09 18:54:47 -0700
commit07fcb044b6ea53b67d00e198f9073e0538df7b75 (patch)
tree8783ca59ac09e9eb2b2893a7addeba7c87b44008 /drivers/net/dm9000.c
parent58f25468b5636c390ad2a58356b127c0055884b4 (diff)
dm9000: Remove unnecessary memset of 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 it to 0 again. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r--drivers/net/dm9000.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index a2bc4158259a..60de17689e64 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -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;