ALSA: usb-audio: Return meaningful error codes instead of -1 in format.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 21 Nov 2012 09:55:56 +0000 (15:25 +0530)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Nov 2012 10:31:52 +0000 (11:31 +0100)
commit8ad10dc6d3fe8396d8213af4d5ce58e0010a3cbc
treed337b1833405ef5f9d7267137389bcbe8fbc75ef
parent27b2a22c714303d1920e269a8322ff23107694ee
ALSA: usb-audio: Return meaningful error codes instead of -1 in format.c

Also, silences the following smatch warning:
sound/usb/format.c:170 parse_audio_format_rates_v1() warn:
returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c