mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
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:
committed by
David S. Miller
parent
b82b213910
commit
04fc71435f
@@ -818,7 +818,6 @@ static int emac_probe(struct platform_device *pdev)
|
||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||
|
||||
db = netdev_priv(ndev);
|
||||
memset(db, 0, sizeof(*db));
|
||||
|
||||
db->dev = &pdev->dev;
|
||||
db->ndev = ndev;
|
||||
|
||||
Reference in New Issue
Block a user