diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-10-27 09:52:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-27 13:31:24 +0300 |
commit | fdde18b9773636cc5866ccd8f2093e1cf0022dea (patch) | |
tree | 92f8a3d35834f5c007161d4592fa5874ee871dd7 /sound/soc/intel/common/soc-acpi-intel-jsl-match.c | |
parent | f88ee76b8645c6da37eec79cfd45f2cc646bd01a (diff) | |
download | linux-fdde18b9773636cc5866ccd8f2093e1cf0022dea.tar.xz |
ASoC: amd: acp: Fix return value check in acp_machine_select()
In case of error, platform_device_register_data() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: e646b51f5dd5 ("ASoC: amd: acp: Add callback for machine driver on ACP")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20211027065228.833825-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/common/soc-acpi-intel-jsl-match.c')
0 files changed, 0 insertions, 0 deletions