Re: [PATCH -next] net: ethernet: bgmac: Fix return value check in bgmac_probe()

2016-07-11 Thread David Miller
From: weiyj...@163.com Date: Tue, 12 Jul 2016 00:17:28 + > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should be > replaced with IS_ERR(). > > Signed-off-by: Wei Yongjun Ap

[PATCH -next] net: ethernet: bgmac: Fix return value check in bgmac_probe()

2016-07-11 Thread weiyj_lk
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/net/ethernet/broadcom/bgmac-platform.c | 2 +- 1 file changed, 1 i