]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Nov 2016 21:28:40 +0000 (22:28 +0100)
commit4763601a56f155ddf94ef35fc2c41504a2de15f5
tree1bdb8a658ca2bbfa8fcf8eebde8a295801965fd0
parentfc90172ba283b598b5497e968de47e3bc2800ed5
ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()

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>
sound/usb/card.c