summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-04-07 12:55:44 +0800
committerJiri Kosina <jkosina@suse.cz>2013-04-24 16:32:27 +0200
commitd856501413e5d72eeb76e1c35e26458e80c27447 (patch)
tree7f04019eafedb119a272f11cd6d2065aacba9a9f /drivers/hid
parentcdfee4ff4158361239e67ae2fab8c1e5d8a4ec05 (diff)
downloadop-kernel-dev-d856501413e5d72eeb76e1c35e26458e80c27447.zip
op-kernel-dev-d856501413e5d72eeb76e1c35e26458e80c27447.tar.gz
HID: icade: u16 which never < 0
from is u16 which never < 0. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-icade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-icade.c b/drivers/hid/hid-icade.c
index 09dcc04..76b5a75 100644
--- a/drivers/hid/hid-icade.c
+++ b/drivers/hid/hid-icade.c
@@ -159,7 +159,7 @@ static const struct icade_key icade_usage_table[30] = {
static const struct icade_key *icade_find_translation(u16 from)
{
- if (from < 0 || from > ICADE_MAX_USAGE)
+ if (from > ICADE_MAX_USAGE)
return NULL;
return &icade_usage_table[from];
}
OpenPOWER on IntegriCloud