projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e5216
)
net/fec: no need to memzero private data
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Thu, 13 Jan 2011 20:56:14 +0000
(21:56 +0100)
committer
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Tue, 15 Feb 2011 08:26:28 +0000
(09:26 +0100)
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>
drivers/net/fec.c
patch
|
blob
|
history
diff --git
a/drivers/net/fec.c
b/drivers/net/fec.c
index 8026a16f6b6cdf09fae438abd54f637d129ecf3a..9a25e1e0a2e057dade496813ed6113487246b837 100644
(file)
--- 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;