From: Uwe Kleine-König Date: Thu, 13 Jan 2011 20:56:14 +0000 (+0100) Subject: net/fec: no need to memzero private data X-Git-Tag: MMI-PSA29.97-13-9~20520^2~319^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b06dc2b1cdc33f6426bc4b0d58b357146d739f9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Uwe Kleine-König --- 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;