]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: fix return value check in i2s_alloc_dai()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 25 Oct 2013 09:06:24 +0000 (17:06 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 25 Oct 2013 09:25:51 +0000 (10:25 +0100)
commitb2e1b341fc9b1cf15d1efbe1ce1b976728a4683e
tree4e6603438a6cb37fbf5edec3e53714ece60c3c26
parente6fe7e7216a48f891bfd563c1e8f41f12a351031
ASoC: samsung: fix return value check in i2s_alloc_dai()

In case of error, the function platform_device_alloc() returns NULL
pointer 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>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/samsung/i2s.c