From: Chen Gang Date: Sun, 7 Apr 2013 04:55:44 +0000 (+0800) Subject: HID: icade: u16 which never < 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d856501413e5d72eeb76e1c35e26458e80c27447;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git HID: icade: u16 which never < 0 from is u16 which never < 0. Signed-off-by: Chen Gang Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-icade.c b/drivers/hid/hid-icade.c index 09dcc04595f3..76b5a7570780 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]; }