]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: soc-dapm: remove !card check from snd_soc_dapm_set_bias_level()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 14 Jan 2025 01:06:22 +0000 (01:06 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2025 14:31:13 +0000 (14:31 +0000)
commit41f1d2bd4998829341cdada022ede610068a0f33
treeae5bcac36580429197ea489349f49e0f90a72d92
parent9d499259db0cc5a31e212570c2cf945ad117b900
ASoC: soc-dapm: remove !card check from snd_soc_dapm_set_bias_level()

dapm is setup by snd_soc_dapm_init(), thus dapm->card never been NULL.
We don't need if (!card) check for it.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/877c6ytd9t.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c