summaryrefslogtreecommitdiff
path: root/include/net/act_api.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2020-05-17 14:53:40 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-17 12:43:49 -0700
commite3f2d5579c0b8ad9d1fb6a5813cee38a86386e05 (patch)
treef70ac8ac5df4e7a89ae861ca52aa1dbd52c83b64 /include/net/act_api.h
parenta6211caa634da39d861a47437ffcda8b38ef421b (diff)
downloadlwn-e3f2d5579c0b8ad9d1fb6a5813cee38a86386e05.tar.gz
lwn-e3f2d5579c0b8ad9d1fb6a5813cee38a86386e05.zip
net: phy: propagate an error back to the callers of phy_sfp_probe
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: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 14:37:51 1236 | int ret; 14:37:51 | ^~~ Fixes: 298e54fa810e ("net: phy: add core phylib sfp support") Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/act_api.h')
0 files changed, 0 insertions, 0 deletions