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 <[email protected]> Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9d49925 commit 41f1d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)