summaryrefslogtreecommitdiff
path: root/rust/helpers/refcount.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-10-23 16:41:46 +0300
committerJakub Kicinski <kuba@kernel.org>2024-10-29 21:57:31 +0300
commit280ed44982ff478a949a810f9ddfb4adb8207b57 (patch)
tree9e009b00e9ba5e8ea833ce419d6a5bc1f789908b /rust/helpers/refcount.c
parente0e918494c3cfdc589c9ede49183046a42cdff39 (diff)
downloadlinux-280ed44982ff478a949a810f9ddfb4adb8207b57.tar.xz
net: phylink: add common validation for sfp_select_interface()
Whenever we call sfp_select_interface(), we check the returned value and print an error. There are two cases where this happens with the same message. Provide a common function to do this. Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1t3bcQ-000c85-S4@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/refcount.c')
0 files changed, 0 insertions, 0 deletions