mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
HID: hiddev: Remove redundant check on unsigned variable
No need to check whether unsigned variable is less than 0. CC: Jiri Kosina <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: Tushar Behera <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
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;
|
||||
|
||||
case HIDIOCAPPLICATION:
|
||||
if (arg < 0 || arg >= hid->maxapplication)
|
||||
if (arg >= hid->maxapplication)
|
||||
break;
|
||||
|
||||
for (i = 0; i < hid->maxcollection; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue