]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Use IS_ERR() to check and simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 22 Apr 2020 08:15:42 +0000 (16:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 02:40:07 +0000 (19:40 -0700)
commitf1706d19e4b57e0908f0d6de1430453623804d45
tree1817c2b0ef6d0ee5e6743b3fafae3c3c3f52fc0c
parent7d105884856a9ce053a1b7d65f67be5204b69b64
net: phy: Use IS_ERR() to check and simplify code

Use IS_ERR() and PTR_ERR() instead of PTR_ZRR_OR_ZERO()
to simplify code, avoid redundant paramenter definitions
and judgements.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c