mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
mixer: remove assignment to unused variable
This commit fixes below compiler warnings.
sbase.c:327:16: warning: variable ‘values’ set but not used [-Wunused-but-set-variable]
unsigned long values;
^
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
773eeda110
commit
8870c11894
1 changed files with 0 additions and 2 deletions
|
|
@ -324,7 +324,6 @@ static int simple_event_add1(snd_mixer_class_t *class,
|
|||
struct selem_base *simple;
|
||||
struct helem_base *hsimple;
|
||||
snd_ctl_elem_type_t ctype;
|
||||
unsigned long values;
|
||||
long min, max;
|
||||
int err, new = 0;
|
||||
struct list_head *pos;
|
||||
|
|
@ -349,7 +348,6 @@ static int simple_event_add1(snd_mixer_class_t *class,
|
|||
if (err < 0)
|
||||
return err;
|
||||
ctype = snd_ctl_elem_info_get_type(info);
|
||||
values = snd_ctl_elem_info_get_count(info);
|
||||
switch (ctype) {
|
||||
case SND_CTL_ELEM_TYPE_ENUMERATED:
|
||||
min = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue