]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-bcm-unimac: remove redundant !timeout check
authorColin Ian King <colin.king@canonical.com>
Wed, 27 Mar 2019 16:15:20 +0000 (16:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2019 21:27:30 +0000 (14:27 -0700)
commit6478374b7e977d18c2c8866a7d77bdd2c7f292cf
tree3ad219a1a2b24c07d21e3abf1d0ed28693871b45
parente9b62202b2b5bbe2ab200f641b4447fa12c07044
net: phy: mdio-bcm-unimac: remove redundant !timeout check

The check for zero timeout is always true at the end of the proceeding
while loop; the only other exit path in the loop is if the unimac MDIO
is not busy.  Remove the redundant zero timeout check and always
return -ETIMEDOUT on this timeout return path.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-unimac.c