diff options
| author | Takashi Iwai <tiwai@suse.de> | 2016-11-29 22:28:40 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-06-17 15:48:48 +0200 |
| commit | 3a637cf2fdaab58e244d7ba84721d6d74b411883 (patch) | |
| tree | 4459f68a5b47710aa341e7da3f6abe1931e53eab /sound/usb/card.c | |
| parent | 3e04a9db3a1320547e4ecbb23a68a2bef2f5f469 (diff) | |
ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()
commit 4763601a56f155ddf94ef35fc2c41504a2de15f5 upstream.
The function returns -EINVAL even if it builds the stream properly.
The bogus error code sneaked in during the code refactoring, but it
wasn't noticed until now since the returned error code itself is
ignored in anyway. Kill it here, but there is no behavior change by
this patch, obviously.
Fixes: e5779998bf8b ('ALSA: usb-audio: refactor code')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'sound/usb/card.c')
| -rw-r--r-- | sound/usb/card.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c index 64952e2d3..7344ac083 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -205,7 +205,6 @@ static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int int if (! snd_usb_parse_audio_interface(chip, interface)) { usb_set_interface(dev, interface, 0); /* reset the current interface */ usb_driver_claim_interface(&usb_audio_driver, iface, (void *)-1L); - return -EINVAL; } return 0; |
