提交 d339f61d 编写于 作者: T Tushar Behera 提交者: Jiri Kosina

HID: hiddev: Remove redundant check on unsigned variable

No need to check whether unsigned variable is less than 0.

CC: Jiri Kosina <jkosina@suse.cz>
CC: linux-usb@vger.kernel.org
CC: linux-input@vger.kernel.org
Signed-off-by: NTushar Behera <tushar.behera@linaro.org>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 88c687b3
......@@ -625,7 +625,7 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
break;
case HIDIOCAPPLICATION:
if (arg < 0 || arg >= hid->maxapplication)
if (arg >= hid->maxapplication)
break;
for (i = 0; i < hid->maxcollection; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册