Skip to content

Commit

Permalink
HID: icade: u16 which never < 0
Browse files Browse the repository at this point in the history
from is u16 which never < 0.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Chen Gang authored and Jiri Kosina committed Apr 24, 2013
1 parent cdfee4f commit d856501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-icade.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit d856501

Please sign in to comment.