]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: dapm: Use IS_ERR_OR_NULL() helper function
authorHongbo Li <lihongbo22@huawei.com>
Wed, 28 Aug 2024 12:28:29 +0000 (20:28 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Aug 2024 12:52:18 +0000 (13:52 +0100)
commit75560718e83bede12d70b2a6b6940089477f58e4
tree6bb26a23b52946106f8308b049e83fff0512d782
parent69a8d0edb9d78bb5515133b7c08f399d6eaff37a
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>
sound/soc/soc-dapm.c