Browse Source

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>
Chen Gang 12 years ago
parent
commit
d856501413
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/hid/hid-icade.c

+ 1 - 1
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];
 }