net: phy: remove useless check in state machine case PHY_NOLINK
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Nov 2018 19:43:20 +0000 (20:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 23:02:05 +0000 (15:02 -0800)
commit3b01ea72f34cf8e18d16d993bb20f3cd241e4e52
tree7302b2d8d599bf37cfb2d9aca17af3326f3836c1
parent5867b330140518ad73507f0be98d89636b91bf5f
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>
drivers/net/phy/phy.c