net: mdio: mdio-bcm-unimac: Use read_poll_timeout
authorJustin Chen <justin.chen@broadcom.com>
Wed, 13 Dec 2023 22:27:44 +0000 (14:27 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Dec 2023 01:58:58 +0000 (17:58 -0800)
commit54a600ed217036f231805703cedd9f8f98d3f40a
tree151dd5947efaa59f3441f3184f9362cf41910670
parent268531be211f18c55f7ff5a1641d32c0fd0571cd
net: mdio: mdio-bcm-unimac: Use read_poll_timeout

Simplify the code by using read_poll_timeout().

Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231213222744.2891184-3-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-bcm-unimac.c