aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-09-08 21:07:44 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-09 21:54:47 -0400
commit07fcb044b6ea53b67d00e198f9073e0538df7b75 (patch)
tree8783ca59ac09e9eb2b2893a7addeba7c87b44008
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>
-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)
1281 1281
1282 /* setup board info structure */ 1282 /* setup board info structure */
1283 db = netdev_priv(ndev); 1283 db = netdev_priv(ndev);
1284 memset(db, 0, sizeof(*db));
1285 1284
1286 db->dev = &pdev->dev; 1285 db->dev = &pdev->dev;
1287 db->ndev = ndev; 1286 db->ndev = ndev;