]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: amd: acp3x: Fix return value check in acp3x_dai_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Jan 2020 03:59:54 +0000 (03:59 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jan 2020 13:23:43 +0000 (13:23 +0000)
commit446b4e0c51b78f778c2e775a0baa6127b9361ba0
treef4d2336f189a09632fe494a22f945c7275fa1597
parent571943b2060357f2c0ac4550560e45f1bd9f4d36
ASoC: amd: acp3x: Fix return value check in acp3x_dai_probe()

In case of error, the function devm_ioremap() returns NULL pointer not
ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: 1319686f2bf2 ("ASoC: amd: Refactoring of DAI from DMA driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200108035954.51317-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/raven/acp3x-i2s.c