]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phylink: add common validation for sfp_select_interface()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 23 Oct 2024 13:41:46 +0000 (14:41 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Oct 2024 18:57:31 +0000 (11:57 -0700)
commit280ed44982ff478a949a810f9ddfb4adb8207b57
tree9e009b00e9ba5e8ea833ce419d6a5bc1f789908b
parente0e918494c3cfdc589c9ede49183046a42cdff39
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>
drivers/net/phy/phylink.c