ALSA: us122l: Fix signedness in comparisions
commitf600f6c4824d7e40be370f7e26ab0fbc3f6f911c
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Thu, 16 Apr 2009 17:35:01 +0000 (16 19:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Apr 2009 13:24:07 +0000 (17 15:24 +0200)
tree5aeb05a46ddcd28d6ac12ee7a68e8d07fc95cd3e
parent0882e8dd3aad33eca41696d463bb896e6c8817eb
ALSA: us122l: Fix signedness in comparisions

Within 2.6.30's mergewindow, struct urb's transfer_buffer_length has become
unsigned. This changed an "int > int" comparision to an "unsigned > int" one
in snd_usb_122l.
Fix this by using a local int variable instead of urb->transfer_buffer_length
in comparisions.

Shorten playback_prep_freqn() a bit and tweak error-paths in
usb_stream_prepare_playback().

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usb_stream.c