net: ethernet: allwinner: Remove unneeded memset
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Thu, 4 Jul 2019 02:59:06 +0000 (08:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:25:55 +0000 (15:25 -0700)
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>
drivers/net/ethernet/allwinner/sun4i-emac.c

index 9e06dff619c333299eda915622f7c51179ed46ca..6253e5ed6e161e70f3da542a2e1497a3c92ba3b1 100644 (file)
@@ -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;