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)
commit444d3502ed00a1354c9201c332cb7962dd0ac555
treedcffc8d8a73713041c813d569f5b31b7441c8e71
parentf10fcbcf91006a3223cffbc413b5abe17cf46937
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