From: Wei Yongjun Date: Thu, 16 Apr 2015 12:17:46 +0000 (+0800) Subject: ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe() X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2~48^2^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=427ced4b203dfea4f08b1298cd1f88e19039fca4;p=pandora-kernel.git 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 Acked-by: Peter Rosin Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed