ALSA: usb-audio: fix return values
authorDaniel Mack <daniel@caiaq.de>
Wed, 26 May 2010 16:11:37 +0000 (18:11 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 27 May 2010 07:48:47 +0000 (09:48 +0200)
commit8d0912427113723c3f3a4dca631638844c4ab649
treed2c8e8e16d7db56af1f16c5329d5d4c97024163f
parent74754f974b36c5a1156be46d0da05ab2c0a0960b
ALSA: usb-audio: fix return values

-1 is not a good return value as it means -EPERM, "not permitted".
Choose -ENOTSUPP instead, which is what the code really wants to tell
its callers.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c