Fix gcc compilation error
input_absinfo.code is unsigned so condition is always false
This commit is contained in:
parent
2d9db0bc63
commit
886f6623f6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user