]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ethernet: broadcom: bcm63xx_enet: Remove unneeded memset
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 30 Jun 2019 14:29:49 +0000 (19:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 02:29:19 +0000 (19:29 -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/broadcom/bcm63xx_enet.c

index 85e610210477c8245138c3c4954bf02f47e2871d..291e4afd4a1ac535674bdd5839cd702650657efb 100644 (file)
@@ -2659,7 +2659,6 @@ static int bcm_enetsw_probe(struct platform_device *pdev)
        if (!dev)
                return -ENOMEM;
        priv = netdev_priv(dev);
-       memset(priv, 0, sizeof(*priv));
 
        /* initialize default and fetch platform data */
        priv->enet_is_sw = true;