Do not drop the error value and use it as a return value instead. Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> --- drivers/net/designware.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 104258e21c51..cb7c4a13719c 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -99,8 +99,7 @@ static int dwc_ether_mii_write(struct mii_bus *dev, int addr, int reg, u16 val) writel(miiaddr | MII_CLKRANGE_150_250M | MII_BUSY, &mac_p->miiaddr); /* Needed as a fix for ST-Phy */ - dwc_ether_mii_read(dev, addr, reg); - return 0; + return dwc_ether_mii_read(dev, addr, reg); } -- 2.19.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox