Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa90b077 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fc0c0900
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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",