]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Fix return value check in xgmiitorgmii_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 15 Aug 2016 22:34:57 +0000 (22:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 23:16:10 +0000 (16:16 -0700)
commitde35184f2eccd98c004df3d32aa8be39a429fa0f
treee99ef0a89e69d6d2caeadf61aa8a409a25a689d0
parent5a084e6138d2fef83620c353bb1a88749b2e1fed
net: phy: Fix return value check in xgmiitorgmii_probe()

In case of error, the function of_parse_phandle() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/xilinx_gmii2rgmii.c