diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-01-13 21:56:14 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-15 09:26:28 +0100 |
commit | 8b06dc2b1cdc33f6426bc4b0d58b357146d739f9 (patch) | |
tree | 7feb3a730342c0ca47fbae89bd2603d2f1c22f3b /drivers/net/fec.c | |
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>
Diffstat (limited to 'drivers/net/fec.c')
-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 8026a16f6b6..9a25e1e0a2e 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; |