]> Gentwo Git Trees - linux/.git/commit
ASoC: SDCA: Fix NULL vs IS_ERR() bug in sdca_dev_register_functions()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 25 Nov 2025 13:55:28 +0000 (16:55 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 25 Nov 2025 15:17:46 +0000 (15:17 +0000)
commit80339b3823bb76d383c82186b55ac836fed3f586
treeb719d7241ad33961800f7327d6c54baf09e185ce
parenta13744f628c61a450f650442a118405242ac0db0
ASoC: SDCA: Fix NULL vs IS_ERR() bug in sdca_dev_register_functions()

The sdca_dev_register() function never returns NULL, it returns error
pointers on error.  Fix the error checking to match.

Fixes: 4496d1c65bad ("ASoC: SDCA: add function devices")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/aSW1UOgMCiQIaZG8@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_function_device.c