Skip to content

Commit

Permalink
lpc_eth: fix error return code in lpc_eth_drv_probe()
Browse files Browse the repository at this point in the history
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Wei Yongjun authored and davem330 committed Mar 20, 2013
1 parent fc0c090 commit fa90b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/nxp/lpc_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, ndev);

if (lpc_mii_init(pldat) != 0)
ret = lpc_mii_init(pldat);
if (ret)
goto err_out_unregister_netdev;

netdev_info(ndev, "LPC mac at 0x%08x irq %d\n",
Expand Down

0 comments on commit fa90b07

Please sign in to comment.