mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5867b33014
commit
3b01ea72f3
1 changed files with 0 additions and 11 deletions
|
@ -970,17 +970,6 @@ void phy_state_machine(struct work_struct *work)
|
|||
break;
|
||||
|
||||
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;
|
||||
phy_link_up(phydev);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue