From: Pierre-Louis Bossart Date: Fri, 26 Mar 2021 21:59:16 +0000 (-0500) Subject: ASoC: meson: axg-tdmout: remove useless assignment X-Git-Tag: v5.13-rc1~87^2~19^2^2~89^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18efddee4f0a8820a4ba0215655bbafd479025bf;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20210326215927.936377-7-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/axg-tdmout.c b/sound/soc/meson/axg-tdmout.c index 3ceabddae629e..22d519fc07b24 100644 --- a/sound/soc/meson/axg-tdmout.c +++ b/sound/soc/meson/axg-tdmout.c @@ -55,7 +55,7 @@ static const struct regmap_config axg_tdmout_regmap_cfg = { static struct snd_soc_dai * axg_tdmout_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_sink_path(w, p) {