diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-12 01:47:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-11 18:19:50 -0800 |
commit | 30beabb3c32122d533ce0e2fc712f9d720a82f9f (patch) | |
tree | 7df39872c2cd8305ad358b43267c999fa85bb5ee /drivers/net/phy/marvell.c | |
parent | 2b9b7502dfcb6169dbf3359702953bf756b4e273 (diff) | |
download | linux-30beabb3c32122d533ce0e2fc712f9d720a82f9f.tar.gz linux-30beabb3c32122d533ce0e2fc712f9d720a82f9f.tar.bz2 linux-30beabb3c32122d533ce0e2fc712f9d720a82f9f.zip |
net: phy: marvell: remove set but not used variable 'pause'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/phy/marvell.c: In function 'm88e1510_config_init':
drivers/net/phy/marvell.c:850:7: warning:
variable 'pause' set but not used [-Wunused-but-set-variable]
It not used any more after commit 3c1bcc8614db ("net: ethernet: Convert phydev
advertize and supported from u32 to link mode")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell.c')
-rw-r--r-- | drivers/net/phy/marvell.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 36a0db86c6f4..6a9881942e53 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -847,7 +847,6 @@ static int m88e1510_config_init(struct phy_device *phydev) /* SGMII-to-Copper mode initialization */ if (phydev->interface == PHY_INTERFACE_MODE_SGMII) { - u32 pause; /* Select page 18 */ err = marvell_set_page(phydev, 18); @@ -878,7 +877,6 @@ static int m88e1510_config_init(struct phy_device *phydev) * This means we can never be truely sure what was advertised, * so disable Pause support. */ - pause = SUPPORTED_Pause | SUPPORTED_Asym_Pause; linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, phydev->supported); linkmode_clear_bit(ETHTOOL_LINK_MODE_Pause_BIT, |