From: Fabio Estevam Date: Sat, 22 Dec 2012 12:38:14 +0000 (-0200) Subject: ASoC: soc-core: Remove unused 'ret' variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5db1bc1892aa70d378ea7563852ae87f3772519b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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, 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;