Commit 3b01ea72 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

net: phy: remove useless check in state machine case PHY_NOLINK

If aneg is enabled and the PHY reports the link as up then definitely
aneg finished successfully. Therefore this check is useless and
can be removed.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5867b330
...@@ -970,17 +970,6 @@ void phy_state_machine(struct work_struct *work) ...@@ -970,17 +970,6 @@ void phy_state_machine(struct work_struct *work)
break; break;
if (phydev->link) { if (phydev->link) {
if (AUTONEG_ENABLE == phydev->autoneg) {
err = phy_aneg_done(phydev);
if (err < 0)
break;
if (!err) {
phydev->state = PHY_AN;
phydev->link_timeout = PHY_AN_TIMEOUT;
break;
}
}
phydev->state = PHY_RUNNING; phydev->state = PHY_RUNNING;
phy_link_up(phydev); phy_link_up(phydev);
} }
......
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