提交 fa8cddaf 编写于 作者: B Balakumaran Kannan 提交者: 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: NBalakumaran Kannan <kumaran.4353@gmail.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1e1cdf8a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册