]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: 6fire - Fix signedness bug
authorTorsten Schenk <torsten.schenk@zoho.com>
Thu, 16 Jun 2011 19:06:27 +0000 (21:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Jun 2011 19:31:33 +0000 (21:31 +0200)
commit68f5aef6bf11ccd3ab2acccc2babc7662e864c4d
tree0e8a2450585f5602f0b1f1c66131e9830f3fc730
parent532cdd9da0c8d4abeeef8eb8a16527180e6f12b8
ALSA: 6fire - Fix signedness bug

Fixed remaining issues of the signedness bug discovered by Dan Carpenter.
A check was remaining that tests if unsigned rt->rate is >= 0.
Changed that so that rt->rate now consistently uses ARRAY_SIZE(rates)
as invalid rate value and not -1.

Signed-off-by: Torsten Schenk <torsten.schenk@zoho.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/6fire/pcm.c