]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc-miim: remove redundant timeout check
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 26 May 2020 16:22:54 +0000 (18:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 22:33:56 +0000 (15:33 -0700)
commit1ff3daa5492b219c784636563d3b76058b2478e8
treefe89eac2cce2a82ee5cbe53dd8a7456c50bb0ec3
parenta4a5de6cfcf3ab26efe6b566e01437487edea6da
net: phy: mscc-miim: remove redundant timeout check

readl_poll_timeout already returns -ETIMEDOUT if the condition isn't
satisfied, there's no need to check again the condition after calling
it. Remove the redundant timeout check.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mscc-miim.c