diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-03-27 00:59:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-31 20:03:18 +0300 |
commit | 18efddee4f0a8820a4ba0215655bbafd479025bf (patch) | |
tree | 888f3b9de09b88821e40cb2069561b7fea0cddaa /sound/soc/meson | |
parent | 84d0493f67b856e5909c18e15b7ce78391565057 (diff) | |
download | linux-18efddee4f0a8820a4ba0215655bbafd479025bf.tar.xz |
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>
Diffstat (limited to 'sound/soc/meson')
-rw-r--r-- | sound/soc/meson/axg-tdmout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/meson/axg-tdmout.c b/sound/soc/meson/axg-tdmout.c index 3ceabddae629..22d519fc07b2 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) { |