Fix gcc compilation error
input_absinfo.code is unsigned so condition is always false
This commit is contained in:
parent
2d9db0bc63
commit
886f6623f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306578
@ -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