]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Mar 2013 07:42:35 +0000 (08:42 +0100)
commit3f90a5392d9851173f9adf25ae55dce48fdbb27f
tree17f3fbf12cf3aa1263f1d68f6d7cb3f1e2b5af9c
parent65d7ccbd55d9b5eb9893a731715a08f32838c6d2
ALSA: snd-usb: mixer: propagate errors up the call chain

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c