mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 11:00:49 +01:00
net phylib: Remove unnecessary condition check in phy
This condition check makes no difference in the code flow since 3.10 Signed-off-by: Balakumaran Kannan <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
1e1cdf8ac7
commit
fa8cddaf90
1 file changed
+1
-5
@@ -756,12 +756,8 @@ void phy_state_machine(struct work_struct *work)
|
||||
netif_carrier_on(phydev->attached_dev);
|
||||
phydev->adjust_link(phydev->attached_dev);
|
||||
|
||||
} else if (0 == phydev->link_timeout--) {
|
||||
} else if (0 == phydev->link_timeout--)
|
||||
needs_aneg = 1;
|
||||
/* If we have the magic_aneg bit, we try again */
|
||||
if (phydev->drv->flags & PHY_HAS_MAGICANEG)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHY_NOLINK:
|
||||
err = phy_read_status(phydev);
|
||||
|
||||
Reference in new issue
Block a user