diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-01-13 15:56:14 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-15 03:26:28 -0500 |
commit | 8b06dc2b1cdc33f6426bc4b0d58b357146d739f9 (patch) | |
tree | 7feb3a730342c0ca47fbae89bd2603d2f1c22f3b | |
parent | 04e5216d44e173fab619d03e2f746f444ea21ebd (diff) |
net/fec: no need to memzero private data
alloc_etherdev internally uses kzalloc, so the private data is already
zerod out.
Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-rw-r--r-- | drivers/net/fec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 8026a16f6b6c..9a25e1e0a2e0 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c | |||
@@ -1386,7 +1386,6 @@ fec_probe(struct platform_device *pdev) | |||
1386 | 1386 | ||
1387 | /* setup board info structure */ | 1387 | /* setup board info structure */ |
1388 | fep = netdev_priv(ndev); | 1388 | fep = netdev_priv(ndev); |
1389 | memset(fep, 0, sizeof(*fep)); | ||
1390 | 1389 | ||
1391 | ndev->base_addr = (unsigned long)ioremap(r->start, resource_size(r)); | 1390 | ndev->base_addr = (unsigned long)ioremap(r->start, resource_size(r)); |
1392 | fep->pdev = pdev; | 1391 | fep->pdev = pdev; |