ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()
authorTakashi Iwai <tiwai@suse.de>
Tue, 29 Nov 2016 21:28:40 +0000 (22:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:46:52 +0000 (00:46 +0200)
commitb1d245157dcfdd7ad15ee44690b5e85403eceb4c
tree5a584570051280e0f1aad023716f190b5a7c0658
parent1a2f2dfba983795f043dc6b4831c84166c2de9d3
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>
sound/usb/card.c