Commit 442a46ad authored by tangbin's avatar tangbin Committed by David S. Miller

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: default avatartangbin <tangbin@cmss.chinamobile.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5de3a238
...@@ -1702,7 +1702,6 @@ static int bcm_enet_probe(struct platform_device *pdev) ...@@ -1702,7 +1702,6 @@ static int bcm_enet_probe(struct platform_device *pdev)
if (!res_irq || !res_irq_rx || !res_irq_tx) if (!res_irq || !res_irq_rx || !res_irq_tx)
return -ENODEV; return -ENODEV;
ret = 0;
dev = alloc_etherdev(sizeof(*priv)); dev = alloc_etherdev(sizeof(*priv));
if (!dev) if (!dev)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment