diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-03-12 12:22:30 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-18 13:50:40 +0000 |
commit | f8a684a4c2c9a6f922453f0e5dc6d20b1bdb082b (patch) | |
tree | 9a8940f5b03bdd44ce9667bfb44e26707cc743ff | |
parent | 8d41c1ab248fa6e6bfd4728a31eec6d3b9e0f924 (diff) | |
download | lwn-f8a684a4c2c9a6f922453f0e5dc6d20b1bdb082b.tar.gz lwn-f8a684a4c2c9a6f922453f0e5dc6d20b1bdb082b.zip |
ASoC: da7219-aad: remove useless initialization
cppcheck warning:
sound/soc/codecs/da7219-aad.c:118:22: style: Variable 'ret' is
assigned a value that is never used. [unreadVariable]
int report = 0, ret = 0;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/20210312182246.5153-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/da7219-aad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7219-aad.c b/sound/soc/codecs/da7219-aad.c index 48081d71c22c..7998fdd3b378 100644 --- a/sound/soc/codecs/da7219-aad.c +++ b/sound/soc/codecs/da7219-aad.c @@ -115,7 +115,7 @@ static void da7219_aad_hptest_work(struct work_struct *work) __le16 tonegen_freq_hptest; u8 pll_srm_sts, pll_ctrl, gain_ramp_ctrl, accdet_cfg8; - int report = 0, ret = 0; + int report = 0, ret; /* Lock DAPM, Kcontrols affected by this test and the PLL */ snd_soc_dapm_mutex_lock(dapm); |