Skip to content

Commit 41f1d2b

Browse files
morimotobroonie
authored andcommitted
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>
1 parent 9d49925 commit 41f1d2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/soc-dapm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm,
730730
if (ret != 0)
731731
goto out;
732732

733-
if (!card || dapm != &card->dapm)
733+
if (dapm != &card->dapm)
734734
ret = snd_soc_dapm_force_bias_level(dapm, level);
735735

736736
if (ret != 0)

0 commit comments

Comments
 (0)