Instead of silently dropping the return value of socfpga_dwc_set_phy_mode, use it as the return value of the function, instead. Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> --- drivers/net/designware_socfpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/designware_socfpga.c b/drivers/net/designware_socfpga.c index cb88882d66a0..ff4b6a565559 100644 --- a/drivers/net/designware_socfpga.c +++ b/drivers/net/designware_socfpga.c @@ -158,9 +158,7 @@ static int socfpga_dwc_ether_probe(struct device_d *dev) if (ret) return ret; - socfpga_dwc_set_phy_mode(dwc_dev); - - return 0; + return socfpga_dwc_set_phy_mode(dwc_dev); } static struct dw_eth_drvdata socfpga_stmmac_drvdata = { -- 2.19.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox