]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: remove set but not used variable 'phy_mode'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 8 Oct 2018 14:07:50 +0000 (14:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 18:03:42 +0000 (11:03 -0700)
commit5e4c2bcb5b9011c4f8453ec904925032f83042c1
treea576610ae9cec514ce6973b087afbcaec8bf27d6
parent7aa4f103eb2e2de6d5640c79cd95d5dc82b49bda
net: mscc: ocelot: remove set but not used variable 'phy_mode'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/mscc/ocelot_board.c: In function 'mscc_ocelot_probe':
drivers/net/ethernet/mscc/ocelot_board.c:262:17: warning:
 variable 'phy_mode' set but not used [-Wunused-but-set-variable]
   enum phy_mode phy_mode;

It never used since introduction in
commit 59102647a0c6 ("net: mscc: ocelot: make use of SerDes PHYs for handling their configuration")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_board.c