net: lpc-enet: fix error return code in lpc_mii_init()
Subsystems (5)
PATCH 1/1 net: lpc-enet: fix error return code in lpc_mii_init()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.
Fixes b7370112f519 ("lpc32xx: Added ethernet driver")
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/net/ethernet/nxp/lpc_eth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/nxp/lpc_eth.c +2 -1
@@ -823,7 +823,8 @@ static int lpc_mii_init(struct netdata_local *pldat)if (err) goto err_out_unregister_bus; -if (lpc_mii_probe (pldat->ndev) !=0 ) + err =lpc_mii_probe (pldat->ndev); +if (err) goto err_out_unregister_bus;return 0 ;
Quoted 5 lines · Wei Yongjun
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.
Fixes b7370112f519 ("lpc32xx: Added ethernet driver")Signed-off-by Wei Yongjun <[email protected]>
--
Best wishes,
Vladimir
From: Wei Yongjun <[email protected]>
Date: Mon, 27 Apr 2020 12:15:07 +0000
Quoted 5 lines
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.
Fixes b7370112f519 ("lpc32xx: Added ethernet driver")Signed-off-by Wei Yongjun <[email protected]>
Applied.