Re: [PATCH net] net: phy: propagate an error back to the callers of phy_sfp_probe

2020-05-17 Thread David Miller
From: Leon Romanovsky Date: Sun, 17 May 2020 14:53:40 +0300 > From: Leon Romanovsky > > The compilation warning below reveals that the errors returned from > the sfp_bus_add_upstream() call are not propagated to the callers. > Fix it by returning "ret". > > 14:37:51 drivers/net/phy/phy_device.

[PATCH net] net: phy: propagate an error back to the callers of phy_sfp_probe

2020-05-17 Thread Leon Romanovsky
From: Leon Romanovsky The compilation warning below reveals that the errors returned from the sfp_bus_add_upstream() call are not propagated to the callers. Fix it by returning "ret". 14:37:51 drivers/net/phy/phy_device.c: In function 'phy_sfp_probe': 14:37:51 drivers/net/phy/phy_device.c:1236:6