Skip to contentSkip to conversation

ASoC: soc-core: Remove unused variable 'min'

PATCH Applied Fabio Estevam 2 participants 2 messages Apr 26, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: soc-core: Remove unused variable 'min'

commit 4183eed2 (ASoC: core: Add signed multi register control) introduced the variable 'min',but it is not used.

Remove it to fix the following build warning:

sound/soc/soc-core.c: In function 'snd_soc_put_xr_sx':
sound/soc/soc-core.c:2990: warning: unused variable 'min'

---
 sound/soc/soc-core.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +0 -1
index c46ece5..5b0688e 100644
@@ -2987,7 +2987,6 @@ int snd_soc_put_xr_sx(struct snd_kcontrol *kcontrol,
 	unsigned int regwmask = (1<<regwshift)-1;
 	unsigned int invert = mc->invert;
 	unsigned long mask = (1UL<<mc->nbits)-1;
-	long min = mc->min;
 	long max = mc->max;
 	long val = ucontrol->value.integer.value[0];
 	unsigned int i, regval, regmask;
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 2 lines · Fabio Estevam

commit 4183eed2 (ASoC: core: Add signed multi register control) introduced the variable 'min',but it is not used.

Applied, thanks.