diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-01-13 23:56:14 +0300 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-15 11:26:28 +0300 |
commit | 8b06dc2b1cdc33f6426bc4b0d58b357146d739f9 (patch) | |
tree | 7feb3a730342c0ca47fbae89bd2603d2f1c22f3b /drivers | |
parent | 04e5216d44e173fab619d03e2f746f444ea21ebd (diff) | |
download | linux-8b06dc2b1cdc33f6426bc4b0d58b357146d739f9.tar.xz |
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>
Diffstat (limited to 'drivers')
-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) /* setup board info structure */ fep = netdev_priv(ndev); - memset(fep, 0, sizeof(*fep)); ndev->base_addr = (unsigned long)ioremap(r->start, resource_size(r)); fep->pdev = pdev; |