summaryrefslogtreecommitdiffstats
path: root/drivers/net
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
parent58f25468b5636c390ad2a58356b127c0055884b4 (diff)
downloadop-kernel-dev-07fcb044b6ea53b67d00e198f9073e0538df7b75.zip
op-kernel-dev-07fcb044b6ea53b67d00e198f9073e0538df7b75.tar.gz
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')
-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 a2bc415..60de176 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;
OpenPOWER on IntegriCloud