Commit fa8cddaf authored by Balakumaran Kannan's avatar Balakumaran Kannan Committed by David S. Miller

net phylib: Remove unnecessary condition check in phy

This condition check makes no difference in the code flow since 3.10
Signed-off-by: default avatarBalakumaran Kannan <kumaran.4353@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e1cdf8a
...@@ -756,12 +756,8 @@ void phy_state_machine(struct work_struct *work) ...@@ -756,12 +756,8 @@ void phy_state_machine(struct work_struct *work)
netif_carrier_on(phydev->attached_dev); netif_carrier_on(phydev->attached_dev);
phydev->adjust_link(phydev->attached_dev); phydev->adjust_link(phydev->attached_dev);
} else if (0 == phydev->link_timeout--) { } else if (0 == phydev->link_timeout--)
needs_aneg = 1; needs_aneg = 1;
/* If we have the magic_aneg bit, we try again */
if (phydev->drv->flags & PHY_HAS_MAGICANEG)
break;
}
break; break;
case PHY_NOLINK: case PHY_NOLINK:
err = phy_read_status(phydev); err = phy_read_status(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