]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ff-core - silence an underflow warning
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Sep 2015 23:02:29 +0000 (16:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Sep 2015 23:09:36 +0000 (16:09 -0700)
commite0fb861b44bb8f0ed8bb426c90a09352b5a318b2
treeeb440160dd851c8103c0ca44b253c803ec166fd7
parent615206e694fa3e679896f26a8fd6b1eed1663eba
Input: ff-core - silence an underflow warning

My static checker complains that "value" comes from the user in
evdev_do_ioctl() and we check that it's not too large here but we don't
check that it's negative.  It's harmless because the ->set_gain() and
->set_autocenter() functions truncate it to a valid u16 value, but we
may as well fix it just to make the static checker happy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/ff-core.c