]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: snd-usb: mixer: propagate errors up the call chain
authorDaniel Mack <zonque@gmail.com>
Tue, 19 Mar 2013 20:09:24 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:06:01 +0000 (12:06 -0700)
commit8eb3446cae04c4d100818003dac2d4546e3f0704
tree9c1d438f747d39c1c289ff3b793227c86077dc93
parent90c925a0edaec90fe169ab62dffa570de362d5b1
ALSA: snd-usb: mixer: propagate errors up the call chain

commit 4d7b86c98e445b075c2c4c3757eb6d3d6efbe72e upstream.

In check_input_term() and parse_audio_feature_unit(), propagate the
error value that has been returned by a failing function instead of
-EINVAL. That helps cleaning up the error pathes in the mixer.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c