From: Pierre-Louis Bossart Date: Tue, 2 Mar 2021 21:25:27 +0000 (-0600) Subject: ASoC: rt5682: remove useless initialization X-Git-Tag: v5.13-rc1~87^2~19^2^2~173^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1a1da09faa3a875ede33386863ea363270be097;p=thirdparty%2Fkernel%2Flinux.git ASoC: rt5682: remove useless initialization cppcheck complains about a possible null pointer dereference, but the problem is rather an useless initialization before walking through a list. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210302212527.55158-25-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 8d5b8f01f55c4..559dc6db1f7c1 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -2751,7 +2751,7 @@ static int rt5682_bclk_set_rate(struct clk_hw *hw, unsigned long rate, container_of(hw, struct rt5682_priv, dai_clks_hw[RT5682_DAI_BCLK_IDX]); struct snd_soc_component *component = rt5682->component; - struct snd_soc_dai *dai = NULL; + struct snd_soc_dai *dai; unsigned long factor; if (!rt5682_clk_check(rt5682))