Commit 72ca820b authored by Nicolas Ferre's avatar Nicolas Ferre Committed by David S. Miller

net/macb: fix error return code in macb_probe()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Original-idea-by: <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab09a6d0
...@@ -1602,9 +1602,9 @@ static int __init macb_probe(struct platform_device *pdev) ...@@ -1602,9 +1602,9 @@ static int __init macb_probe(struct platform_device *pdev)
goto err_out_free_irq; goto err_out_free_irq;
} }
if (macb_mii_init(bp) != 0) { err = macb_mii_init(bp);
if (err)
goto err_out_unregister_netdev; goto err_out_unregister_netdev;
}
platform_set_drvdata(pdev, dev); platform_set_drvdata(pdev, dev);
......
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