phonepad: modify rt3261 hp pwd pop.
[firefly-linux-kernel-4.4.55.git] / sound / core / control.c
index 5d98194bcad55b6963037d95d35743909517018a..f8c5be46451058ba5a7f25d9a81195fd02643f92 100644 (file)
@@ -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;