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>
This commit is contained in:
parent
04e5216d44
commit
8b06dc2b1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user