ASoC: dapm: Use IS_ERR_OR_NULL() helper function

Use the IS_ERR_OR_NULL() helper instead of open-coding a
NULL and an error pointer checks to simplify the code and
improve readability.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20240828122829.3697502-1-lihongbo22@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Hongbo Li 2024-08-28 20:28:29 +08:00 • committed by Mark Brown
commit 75560718e8
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0