Skip to contentSkip to conversation

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

PATCH Applied Fabio Estevam 2 participants 2 messages Dec 22, 2012 – Dec 24, 2012

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

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

From: Fabio Estevam <[email protected]>

commit 9bde4f0b1c (ASoC: core: Fix SOC_DOUBLE_RANGE() macros) introduced the following build warning:

sound/soc/soc-core.c:2999:6: warning: unused variable 'ret' [-Wunused-variable]

Remove the unused 'ret' variable.

---
 sound/soc/soc-core.c |    1 -
 1 file changed, 1 deletion(-)
sound/soc/soc-core.c +0 -1
index e0d4630..29046e7 100644
@@ -2996,7 +2996,6 @@ int snd_soc_get_volsw_range(struct snd_kcontrol *kcontrol,
 	int max = mc->max;
 	unsigned int mask = (1 << fls(max)) - 1;
 	unsigned int invert = mc->invert;
-	int ret;
 
 	ucontrol->value.integer.value[0] =
 		(snd_soc_read(codec, reg) >> shift) & mask;
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 4 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

commit 9bde4f0b1c (ASoC: core: Fix SOC_DOUBLE_RANGE() macros) introduced the following build warning:

Applied, thanks.