Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chen Gang and committed by
Jiri Kosina
d8565014 cdfee4ff

+1 -1
+1 -1
drivers/hid/hid-icade.c
··· 159 159 160 160 static const struct icade_key *icade_find_translation(u16 from) 161 161 { 162 - if (from < 0 || from > ICADE_MAX_USAGE) 162 + if (from > ICADE_MAX_USAGE) 163 163 return NULL; 164 164 return &icade_usage_table[from]; 165 165 }