Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8909783c authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by David S. Miller
Browse files

net: ethernet: broadcom: bcm63xx_enet: 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 fec3b9ec
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;