summaryrefslogtreecommitdiffstats
path: root/sound/core/control.c
diff options
context:
space:
mode:
authorLuca Tettamanti <kronos.it@gmail.com>2011-05-25 22:43:27 +0200
committerTakashi Iwai <tiwai@suse.de>2011-05-26 08:19:04 +0200
commit78fa2c4d2465d014e67d3e12d948425856587251 (patch)
tree87914a2c91f3f555da43088445a686f0f3400d7d /sound/core/control.c
parentf2b3614cefb61ee6046a0aaee503ee37f227d310 (diff)
downloadlinux-stable-78fa2c4d2465d014e67d3e12d948425856587251.tar.gz
linux-stable-78fa2c4d2465d014e67d3e12d948425856587251.tar.bz2
linux-stable-78fa2c4d2465d014e67d3e12d948425856587251.zip
ALSA: core: remove unused variables.
Drop a few variables that are never read. Signed-off-by: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/control.c')
-rw-r--r--sound/core/control.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/control.c b/sound/core/control.c
index 5d98194bcad5..f8c5be464510 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -704,13 +704,12 @@ static int snd_ctl_elem_list(struct snd_card *card,
struct snd_ctl_elem_list list;
struct snd_kcontrol *kctl;
struct snd_ctl_elem_id *dst, *id;
- unsigned int offset, space, first, jidx;
+ unsigned int offset, space, jidx;
if (copy_from_user(&list, _list, sizeof(list)))
return -EFAULT;
offset = list.offset;
space = list.space;
- first = 0;
/* try limit maximum space */
if (space > 16384)
return -ENOMEM;