diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-05 10:53:03 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-05 19:58:11 +0300 |
commit | 590eb2f4ef94cb3f3e73345c6db4de97c9cd539e (patch) | |
tree | 2b99f6daa17dc85d032e262d8bed07ff6ccffdee /sound | |
parent | c150266f592bc0baf1de515ca793ef839f645fc8 (diff) | |
download | linux-590eb2f4ef94cb3f3e73345c6db4de97c9cd539e.tar.xz |
ASoC: rt5665: remove redundant assignment to variable idx
The variable idx is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190705075303.14692-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5665.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c index 87263317085a..c050d84a6916 100644 --- a/sound/soc/codecs/rt5665.c +++ b/sound/soc/codecs/rt5665.c @@ -1478,7 +1478,7 @@ static int set_dmic_clk(struct snd_soc_dapm_widget *w, { struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); struct rt5665_priv *rt5665 = snd_soc_component_get_drvdata(component); - int pd, idx = -EINVAL; + int pd, idx; pd = rl6231_get_pre_div(rt5665->regmap, RT5665_ADDA_CLK_1, RT5665_I2S_PD1_SFT); |