Re: [PATCH -next] net: axienet: Fix return value check in axienet_probe()

2016-07-20 Thread David Miller
From: Wei Yongjun Date: Tue, 19 Jul 2016 11:23:24 + > From: 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. > > Fixes: 46aa27df8853 ('net: axienet: Use d

[PATCH -next] net: axienet: Fix return value check in axienet_probe()

2016-07-19 Thread Wei Yongjun
From: 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. Fixes: 46aa27df8853 ('net: axienet: Use devm_* calls') Signed-off-by: Wei Yongjun --- drivers/net/ethernet/xili