Skip to content

Commit

Permalink
net: ethernet: broadcom: bcm63xx_enet: Remove unneeded memset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hariprasad Kelam authored and David S. Miller committed Jul 2, 2019
1 parent fec3b9e commit 8909783
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/broadcom/bcm63xx_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8909783

Please sign in to comment.