ALSA: usb-audio: remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Aug 2019 13:45:50 +0000 (16:45 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Aug 2019 13:51:39 +0000 (15:51 +0200)
We recently cleaned up the error handling in commit 52c3e317a857 ("ALSA:
usb-audio: Unify the release of usb_mixer_elem_info objects") but
accidentally left this stray return.

Fixes: 52c3e317a857 ("ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c

index 83d22f2..3fd1d17 100644 (file)
@@ -2651,7 +2651,6 @@ static int parse_audio_selector_unit(struct mixer_build *state, int unitid,
                usb_audio_err(state->chip, "cannot malloc kcontrol\n");
                err = -ENOMEM;
                goto error_name;
-               return -ENOMEM;
        }
        kctl->private_value = (unsigned long)namelist;
        kctl->private_free = usb_mixer_selector_elem_free;