mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
88c687b3e6
commit
d339f61d14
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HIDIOCAPPLICATION:
|
case HIDIOCAPPLICATION:
|
||||||
if (arg < 0 || arg >= hid->maxapplication)
|
if (arg >= hid->maxapplication)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
for (i = 0; i < hid->maxcollection; i++)
|
for (i = 0; i < hid->maxcollection; i++)
|
||||||
|
|
Loading…
Reference in a new issue