projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdfee4f
)
HID: icade: u16 which never < 0
author
Chen Gang
<gang.chen@asianux.com>
Sun, 7 Apr 2013 04:55:44 +0000
(12:55 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 24 Apr 2013 14:32:27 +0000
(16:32 +0200)
from is u16 which never < 0.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-icade.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-icade.c
b/drivers/hid/hid-icade.c
index 09dcc04595f35c7798b68aed97fdf79f64947328..76b5a7570780b8110b0904277c262f3f995fd8cf 100644
(file)
--- 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];
}