Commit 30beabb3 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

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 3c1bcc86 ("net: ethernet: Convert phydev
advertize and supported from u32 to link mode")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b9b7502
...@@ -847,7 +847,6 @@ static int m88e1510_config_init(struct phy_device *phydev) ...@@ -847,7 +847,6 @@ static int m88e1510_config_init(struct phy_device *phydev)
/* SGMII-to-Copper mode initialization */ /* SGMII-to-Copper mode initialization */
if (phydev->interface == PHY_INTERFACE_MODE_SGMII) { if (phydev->interface == PHY_INTERFACE_MODE_SGMII) {
u32 pause;
/* Select page 18 */ /* Select page 18 */
err = marvell_set_page(phydev, 18); err = marvell_set_page(phydev, 18);
...@@ -878,7 +877,6 @@ static int m88e1510_config_init(struct phy_device *phydev) ...@@ -878,7 +877,6 @@ static int m88e1510_config_init(struct phy_device *phydev)
* This means we can never be truely sure what was advertised, * This means we can never be truely sure what was advertised,
* so disable Pause support. * so disable Pause support.
*/ */
pause = SUPPORTED_Pause | SUPPORTED_Asym_Pause;
linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT,
phydev->supported); phydev->supported);
linkmode_clear_bit(ETHTOOL_LINK_MODE_Pause_BIT, linkmode_clear_bit(ETHTOOL_LINK_MODE_Pause_BIT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment