From: Dan Carpenter Date: Mon, 7 Feb 2011 17:25:19 +0000 (+0300) Subject: ALSA: USB: 6fire: signedness bug in usb6fire_pcm_prepare() X-Git-Tag: v2.6.39-rc1~424^2^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8121d91c02a1be4884821599472acf405efdc3de;p=pandora-kernel.git ALSA: USB: 6fire: signedness bug in usb6fire_pcm_prepare() rt->rate is an unsigned char so it's never equal to -1. It's not a huge problem because the invalid rate is caught inside the call to usb6fire_pcm_set_rate() which returns -EINVAL. But if we fix the test then it prints out the correct error message so that's good. Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed