Commit 04fc7143 authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by David S. Miller

net: ethernet: allwinner: Remove unneeded memset

Remove unneeded memset as alloc_etherdev is using kvzalloc which uses
__GFP_ZERO flag
Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b82b2139
...@@ -818,7 +818,6 @@ static int emac_probe(struct platform_device *pdev) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment