Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: meson: axg-tdmout: 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 <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210326215927.936377-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Pierre-Louis Bossart and committed by
Mark Brown
18efddee 84d0493f

+1 -1
+1 -1
sound/soc/meson/axg-tdmout.c
··· 55 55 static struct snd_soc_dai * 56 56 axg_tdmout_get_be(struct snd_soc_dapm_widget *w) 57 57 { 58 - struct snd_soc_dapm_path *p = NULL; 58 + struct snd_soc_dapm_path *p; 59 59 struct snd_soc_dai *be; 60 60 61 61 snd_soc_dapm_widget_for_each_sink_path(w, p) {