diff options
author | 2025-01-14 01:06:22 +0000 | |
---|---|---|
committer | 2025-01-14 14:31:13 +0000 | |
commit | 41f1d2bd4998829341cdada022ede610068a0f33 (patch) | |
tree | ae5bcac36580429197ea489349f49e0f90a72d92 | |
parent | ASoC: extra format on each DAI (diff) | |
download | wireguard-linux-41f1d2bd4998829341cdada022ede610068a0f33.tar.xz wireguard-linux-41f1d2bd4998829341cdada022ede610068a0f33.zip |
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>
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 99521c784a9b..c0d2c8afe92c 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -730,7 +730,7 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm, if (ret != 0) goto out; - if (!card || dapm != &card->dapm) + if (dapm != &card->dapm) ret = snd_soc_dapm_force_bias_level(dapm, level); if (ret != 0) |