Re: [PATCH -next] net: phy: Fix return value check in xgmiitorgmii_probe()

2016-08-15 Thread David Miller
From: Wei Yongjun Date: Mon, 15 Aug 2016 22:34:57 + > 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

[PATCH -next] net: phy: Fix return value check in xgmiitorgmii_probe()

2016-08-15 Thread Wei Yongjun
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 --- drivers/net/phy/xilinx_gmii2rgmii.c | 2 +- 1 file changed, 1 insertion(+), 1