Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: remove dead code from phy_sanitize_settings

phy_sanitize_settings() is called from phy_start_aneg() only, and only
if phydev->autoneg isn't set. Therefore the removed code does nothing.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiner Kallweit and committed by
David S. Miller
4cf2d206 5e42574b

-4
-4
drivers/net/phy/phy.c
··· 214 214 { 215 215 const struct phy_setting *setting; 216 216 217 - /* Sanitize settings based on PHY capabilities */ 218 - if (linkmode_test_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported)) 219 - phydev->autoneg = AUTONEG_DISABLE; 220 - 221 217 setting = phy_find_valid(phydev->speed, phydev->duplex, 222 218 phydev->supported); 223 219 if (setting) {