Skip to content

Commit

Permalink
ASoC: soc-core: Remove unused 'ret' variable
Browse files Browse the repository at this point in the history
commit 9bde4f0 (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>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Dec 24, 2012
1 parent 9bde4f0 commit 5db1bc1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5db1bc1

Please sign in to comment.