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)
commit4d7b86c98e445b075c2c4c3757eb6d3d6efbe72e
tree17f3fbf12cf3aa1263f1d68f6d7cb3f1e2b5af9c
parent61ac51301e6c6d4ed977d7674ce2b8e713619a9b
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