Fix gcc compilation error

input_absinfo.code is unsigned so condition is always false
This commit is contained in:
Oleksandr Tymoshenko 2016-10-02 03:06:58 +00:00
parent 2d9db0bc63
commit 886f6623f6

View File

@ -527,7 +527,7 @@ uinput_ioctl_sub(struct uinput_cdev_state *state, u_long cmd, caddr_t data)
return (EINVAL);
uabs = (struct uinput_abs_setup *)data;
if (uabs->code > ABS_MAX || uabs->code < 0)
if (uabs->code > ABS_MAX)
return (EINVAL);
evdev_support_abs(state->ucs_evdev, uabs->code,