From: Pierre-Louis Bossart Date: Fri, 26 Mar 2021 21:59:15 +0000 (-0500) Subject: ASoC: meson: axg-tdmin: remove useless assignment X-Git-Tag: v5.13-rc4~20^2~5^2~111^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=84d0493f67b856e5909c18e15b7ce78391565057;p=linux-platform-drivers-x86.git ASoC: meson: axg-tdmin: remove useless assignment cppcheck complains about potential null pointer dereference but it's rather an unnecessary assignment to NULL before walking through a list. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210326215927.936377-6-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/axg-tdmin.c b/sound/soc/meson/axg-tdmin.c index b4faf9d5c1aa..49b613a1faf2 100644 --- a/sound/soc/meson/axg-tdmin.c +++ b/sound/soc/meson/axg-tdmin.c @@ -57,7 +57,7 @@ static const struct snd_kcontrol_new axg_tdmin_in_mux = static struct snd_soc_dai * axg_tdmin_get_be(struct snd_soc_dapm_widget *w) { - struct snd_soc_dapm_path *p = NULL; + struct snd_soc_dapm_path *p; struct snd_soc_dai *be; snd_soc_dapm_widget_for_each_source_path(w, p) {