Skip to content

Commit

Permalink
net phylib: Remove unnecessary condition check in phy
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
0xba1a authored and davem330 committed Apr 9, 2014
1 parent 1e1cdf8 commit fa8cdda
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa8cdda

Please sign in to comment.