Re: [PATCH -next] mfd: sta2x11-mfd: fix return value check in sta2x11_mfd_platform_probe()

2013-12-09 Thread Lee Jones
On Sat, 07 Dec 2013, Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function devm_regmap_init_mmio() 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 > --- >

Re: [PATCH -next] mfd: sta2x11-mfd: fix return value check in sta2x11_mfd_platform_probe()

2013-12-09 Thread Lee Jones
On Sat, 07 Dec 2013, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_regmap_init_mmio() 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

[PATCH -next] mfd: sta2x11-mfd: fix return value check in sta2x11_mfd_platform_probe()

2013-12-06 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function devm_regmap_init_mmio() 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/mfd/sta2x11-mfd.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next] mfd: sta2x11-mfd: fix return value check in sta2x11_mfd_platform_probe()

2013-12-06 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_regmap_init_mmio() 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 yongjun_...@trendmicro.com.cn ---