]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 Apr 2015 12:17:46 +0000 (20:17 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 17 Apr 2015 13:21:04 +0000 (14:21 +0100)
commit728ef3f572f7d547d839ca8c2a97c7bb7dfb198e
tree26d256aca95ffc489b1246e2104366d8cff255a3
parent9cbe621030a9cce16d27329dac74fd4b1c1d9412
ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

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_wei@trendmicro.com.cn>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/tfa9879.c