aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/da7219-aad.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2021-03-12 12:22:30 -0600
committerMark Brown <broonie@kernel.org>2021-03-18 13:50:40 +0000
commitf8a684a4c2c9a6f922453f0e5dc6d20b1bdb082b (patch)
tree9a8940f5b03bdd44ce9667bfb44e26707cc743ff /sound/soc/codecs/da7219-aad.c
parentASoC: cx2070x: remove duplicate else branch (diff)
downloadwireguard-linux-f8a684a4c2c9a6f922453f0e5dc6d20b1bdb082b.tar.xz
wireguard-linux-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>
Diffstat (limited to 'sound/soc/codecs/da7219-aad.c')
-rw-r--r--sound/soc/codecs/da7219-aad.c2
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);