Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8565014 authored by Chen Gang's avatar Chen Gang Committed by Jiri Kosina
Browse files

HID: icade: u16 which never < 0



from is u16 which never < 0.

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent cdfee4ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];
}