]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dapm.c: don't use WARN_ON() at snd_soc_dai_link_event_pre_pmu()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 5 Sep 2022 23:17:43 +0000 (23:17 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 7 Sep 2022 11:44:30 +0000 (12:44 +0100)
commit75f65d640e73c8dd6bf0f09a5e1551e6ae3d34fe
tree8df130985230c3a8b086e2964c6e22fa555fca62
parent5b5916af629865aca07f0f4e544e9cd9b890cadd
ASoC: soc-dapm.c: don't use WARN_ON() at snd_soc_dai_link_event_pre_pmu()

Current snd_soc_dai_link_event_pre_pmu() is checking "config".
It is using dev_err() (A) if it was NULL, so we don't need to use
WARN_ON() (B) to check it, it is over-kill. This patch removes it.

(B) if (WARN_ON(!config)) {
(A) dev_err(...);
...
}

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87zgfd8l7s.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c