From: Tushar Behera Date: Fri, 16 Nov 2012 06:50:43 +0000 (+0530) Subject: HID: hiddev: Remove redundant check on unsigned variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d339f61d14692517e9ba5a977fc266769d6c5c28;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git HID: hiddev: Remove redundant check on unsigned variable No need to check whether unsigned variable is less than 0. CC: Jiri Kosina CC: linux-usb@vger.kernel.org CC: linux-input@vger.kernel.org Signed-off-by: Tushar Behera Signed-off-by: Jiri Kosina --- 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++)