ASoC: soc-dapm.c: ignore parameter NULL at snd_soc_dapm_free_widget()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 19 Oct 2022 00:36:21 +0000 (00:36 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Oct 2022 12:05:28 +0000 (13:05 +0100)
commitc196b412314fef9516af9bc1141e631af15e308f
treec5d69d3066d291a0ff5389e8696f6359d345afd9
parent943402b54eac4b2045f49471016eb170239e2af2
ASoC: soc-dapm.c: ignore parameter NULL at snd_soc_dapm_free_widget()

Currently snd_soc_dapm_free_widget() is assuming input parameter is
non NULL. Thus, caller need to care about it.
This patch care it at snd_soc_dapm_free_widget().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/875yggtzsq.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hda.c
sound/soc/intel/avs/pcm.c
sound/soc/soc-dapm.c