Re: [PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-17 Thread Mark Brown
On Thu, Apr 16, 2015 at 08:17:46PM +0800, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function devm_kzalloc() returns NULL > not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. Applied, thanks. signature.asc Description:

Re: [PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-17 Thread Mark Brown
On Thu, Apr 16, 2015 at 08:17:46PM +0800, weiyj...@163.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Applied, thanks.

RE: [PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-16 Thread Peter Rosin
Wei Yongjun wrote: > In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). > The IS_ERR() test in the return value check should be replaced with NULL > test. Acked-by: Peter Rosin Thanks, Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-16 Thread weiyj_lk
From: Wei Yongjun In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- sound/soc/codecs/tfa9879.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

RE: [PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-16 Thread Peter Rosin
Wei Yongjun wrote: In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Acked-by: Peter Rosin p...@axentia.se Thanks, Peter -- To unsubscribe from this list: send the line unsubscribe

[PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-16 Thread weiyj_lk
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/soc/codecs/tfa9879.c | 4