From: Wei Yongjun Date: Wed, 20 Mar 2013 02:21:48 +0000 (+0000) Subject: lpc_eth: fix error return code in lpc_eth_drv_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa90b077d72b4ea92706e86fdff7b5dca294caa3;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git lpc_eth: fix error return code in lpc_eth_drv_probe() 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index c4122c86f829..efa29b712d5f 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -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",