summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/hiddev.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-16 07:50:43 +0100
committerJiri Kosina <jkosina@suse.cz>2012-11-16 10:26:23 +0100
commitd339f61d14692517e9ba5a977fc266769d6c5c28 (patch)
treeace1890d1f59ba62299c02bec6cfa776dc3f869d /drivers/hid/usbhid/hiddev.c
parentHID: usbhid: add quirk HID_QUIRK_NOGET to TPV optical touchscreen (diff)
downloadlinux-d339f61d14692517e9ba5a977fc266769d6c5c28.tar.xz
linux-d339f61d14692517e9ba5a977fc266769d6c5c28.zip
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: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/hiddev.c')
-rw-r--r--drivers/hid/usbhid/hiddev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c
index 14599e256791..711c9656ec0f 100644
--- a/drivers/hid/usbhid/hiddev.c
+++ b/drivers/hid/usbhid/hiddev.c
@@ -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++)