]> git.baikalelectronics.ru Git - kernel.git/commit
phylink: remove 'mode' variable from phylink_sfp_module_insert()
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Dec 2017 12:15:33 +0000 (12:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:45:32 +0000 (21:45 -0500)
commit1d1207b7c65b0de31b0f4f3ba29cba32e766f9ea
treedcffc8d8a73713041c813d569f5b31b7441c8e71
parent09269ec5baa9df2d022f2c5c08844e2890baf0fc
phylink: remove 'mode' variable from phylink_sfp_module_insert()

'mode' is actually constant through phylink_sfp_module_insert(), so
remove it and replace it with the enumerated constant.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c