]> 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)
commit0b1751b41797e0b6493e0afce07be8befd0c1dee
treedcffc8d8a73713041c813d569f5b31b7441c8e71
parentd3bda85149fe347a77c3a0a2940f7e99453e5f83
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