forked from Minki/linux
net: ethernet: allwinner: Remove unneeded memset
Remove unneeded memset as alloc_etherdev is using kvzalloc which uses __GFP_ZERO flag Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b82b213910
commit
04fc71435f
@ -818,7 +818,6 @@ static int emac_probe(struct platform_device *pdev)
|
|||||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||||
|
|
||||||
db = netdev_priv(ndev);
|
db = netdev_priv(ndev);
|
||||||
memset(db, 0, sizeof(*db));
|
|
||||||
|
|
||||||
db->dev = &pdev->dev;
|
db->dev = &pdev->dev;
|
||||||
db->ndev = ndev;
|
db->ndev = ndev;
|
||||||
|
Loading…
Reference in New Issue
Block a user