Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kuninori Morimoto and committed by
Mark Brown
41f1d2bd 9d499259

+1 -1
+1 -1
sound/soc/soc-dapm.c
··· 730 730 if (ret != 0) 731 731 goto out; 732 732 733 - if (!card || dapm != &card->dapm) 733 + if (dapm != &card->dapm) 734 734 ret = snd_soc_dapm_force_bias_level(dapm, level); 735 735 736 736 if (ret != 0)