提交 d8565014 编写于 作者: C Chen Gang 提交者: Jiri Kosina

HID: icade: u16 which never < 0

from is u16 which never < 0.
Signed-off-by: NChen Gang <gang.chen@asianux.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 cdfee4ff
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册