diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-icade.c | 2 |
1 files changed, 1 insertions, 1 deletions
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] = { | |||
159 | 159 | ||
160 | static const struct icade_key *icade_find_translation(u16 from) | 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 | return NULL; | 163 | return NULL; |
164 | return &icade_usage_table[from]; | 164 | return &icade_usage_table[from]; |
165 | } | 165 | } |