ASoC: mmp-sspa: Fix return value check in asoc_mmp_sspa_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 27 May 2020 03:02:10 +0000 (03:02 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 27 May 2020 13:48:56 +0000 (14:48 +0100)
commit185457632ba344d3100e6bdd8ba839b959521813
treed98a69bd4547ddc201317a732135a391265ff123
parent850ba84b5c6d4ad4d1259584ebc0338eb769f2ef
ASoC: mmp-sspa: Fix return value check in asoc_mmp_sspa_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.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200527030210.124393-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/mmp-sspa.c