diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-06-30 19:59:49 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-01 19:29:19 -0700 |
commit | 8909783cb5b719e05c17e62529efb97c564b2e26 (patch) | |
tree | 0d1c4bfaf875be52459c23560d52c0a6ffc6ef53 /drivers/net/ethernet/broadcom/bcm63xx_enet.c | |
parent | fec3b9ec47bdf1383806c947353ba8d1ddc137cf (diff) | |
download | linux-8909783cb5b719e05c17e62529efb97c564b2e26.tar.bz2 |
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: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm63xx_enet.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcm63xx_enet.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 85e610210477..291e4afd4a1a 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c @@ -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; |