OpenCloudOS-Kernel/sound/mips
Wei Yongjun c88fb897c1 ALSA: n64: Fix return value check in n64audio_probe()
In case of error, the function devm_platform_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().

Fixes: 1448f8acf4 ("sound: Add n64 driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Lauri Kasanen <cand@gmx.com>
Link: https://lore.kernel.org/r/20210224013803.2146953-1-weiyongjun1@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-02-25 10:29:13 +01:00
..
Kconfig sound: Add n64 driver 2021-01-25 11:48:23 +01:00
Makefile sound: Add n64 driver 2021-01-25 11:48:23 +01:00
ad1843.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
hal2.c hal2: convert to dma_alloc_noncoherent 2020-09-25 06:20:44 +02:00
hal2.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00
sgio2audio.c ALSA: sgio2audio: Remove usage of dropped hw_params/hw_free functions 2020-03-06 12:06:41 +01:00
snd-n64.c ALSA: n64: Fix return value check in n64audio_probe() 2021-02-25 10:29:13 +01:00