Commit da22a953 authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

ASoC: wcd934x: Remove set but not unused variable 'hph_comp_ctrl7'

sound/soc/codecs/wcd934x.c: In function wcd934x_codec_hphdelay_lutbypass:
sound/soc/codecs/wcd934x.c:3395:6: warning: variable hph_comp_ctrl7 set but not used [-Wunused-but-set-variable]

commit da3e83f8 ("ASoC: wcd934x: add audio routings")
involved this unused variable.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200210150421.34680-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c8b60c6d
...@@ -3388,18 +3388,15 @@ static void wcd934x_codec_hphdelay_lutbypass(struct snd_soc_component *comp, ...@@ -3388,18 +3388,15 @@ static void wcd934x_codec_hphdelay_lutbypass(struct snd_soc_component *comp,
{ {
u8 hph_dly_mask; u8 hph_dly_mask;
u16 hph_lut_bypass_reg = 0; u16 hph_lut_bypass_reg = 0;
u16 hph_comp_ctrl7 = 0;
switch (interp_idx) { switch (interp_idx) {
case INTERP_HPHL: case INTERP_HPHL:
hph_dly_mask = 1; hph_dly_mask = 1;
hph_lut_bypass_reg = WCD934X_CDC_TOP_HPHL_COMP_LUT; hph_lut_bypass_reg = WCD934X_CDC_TOP_HPHL_COMP_LUT;
hph_comp_ctrl7 = WCD934X_CDC_COMPANDER1_CTL7;
break; break;
case INTERP_HPHR: case INTERP_HPHR:
hph_dly_mask = 2; hph_dly_mask = 2;
hph_lut_bypass_reg = WCD934X_CDC_TOP_HPHR_COMP_LUT; hph_lut_bypass_reg = WCD934X_CDC_TOP_HPHR_COMP_LUT;
hph_comp_ctrl7 = WCD934X_CDC_COMPANDER2_CTL7;
break; break;
default: default:
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment