]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: harmless underflow in snd_audigy2nx_led_put()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 28 Sep 2015 10:06:20 +0000 (13:06 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Sep 2015 12:33:03 +0000 (14:33 +0200)
commita3ea062bd7d959ebd298a25de35d8ce33b519307
tree3b834c58ea97ef808aefabab9109f01664d39dd7
parentfdb3717c89d442caf885e8a7c24ff41609701b59
ALSA: usb-audio: harmless underflow in snd_audigy2nx_led_put()

We want to verify that "value" is either zero or one, so we test if it
is greater than one.  Unfortunately, this is a signed int so it could
also be negative.  I think this is harmless but it introduces a static
checker warning.  Let's make "value" unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_quirks.c