aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-12-22 07:38:14 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-24 10:20:16 -0500
commit5db1bc1892aa70d378ea7563852ae87f3772519b (patch)
tree6cdc9add7049467d43e730ff09372f26af0867f3 /sound
parent9bde4f0b1c83d1129a9fc8ec5b2611ba6dab1215 (diff)
ASoC: soc-core: Remove unused 'ret' variable
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. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e0d4630bfb4f..29046e750ad7 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2996,7 +2996,6 @@ int snd_soc_get_volsw_range(struct snd_kcontrol *kcontrol,
2996 int max = mc->max; 2996 int max = mc->max;
2997 unsigned int mask = (1 << fls(max)) - 1; 2997 unsigned int mask = (1 << fls(max)) - 1;
2998 unsigned int invert = mc->invert; 2998 unsigned int invert = mc->invert;
2999 int ret;
3000 2999
3001 ucontrol->value.integer.value[0] = 3000 ucontrol->value.integer.value[0] =
3002 (snd_soc_read(codec, reg) >> shift) & mask; 3001 (snd_soc_read(codec, reg) >> shift) & mask;