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>
This commit is contained in:
parent
5de3a2386e
commit
442a46ad10
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user