summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortangbin <tangbin@cmss.chinamobile.com>2020-03-05 20:22:59 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-05 14:59:22 -0800
commit442a46ad103ed38ddaaba1d9f7d316beb492c66e (patch)
tree0bd5f9d56ad5747d0ef6695a1fa280f5f11a4bf8
parent5de3a2386ec39f573ae7733db4b506ad850ce015 (diff)
downloadlinux-442a46ad103ed38ddaaba1d9f7d316beb492c66e.tar.bz2
bcm63xx_enet: remove redundant variable definitions
in this function,‘ret’ is always assigned,so this's definition 'ret = 0' make no sense. Signed-off-by: tangbin <tangbin@cmss.chinamobile.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/broadcom/bcm63xx_enet.c1
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 a877159eafb0..916824cca3fd 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1702,7 +1702,6 @@ static int bcm_enet_probe(struct platform_device *pdev)
if (!res_irq || !res_irq_rx || !res_irq_tx)
return -ENODEV;
- ret = 0;
dev = alloc_etherdev(sizeof(*priv));
if (!dev)
return -ENOMEM;