svn commit: r306578 - head/sys/dev/evdev
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Sun Oct 2 03:07:00 UTC 2016
Author: gonzo
Date: Sun Oct 2 03:06:58 2016
New Revision: 306578
URL: https://svnweb.freebsd.org/changeset/base/306578
Log:
Fix gcc compilation error
input_absinfo.code is unsigned so condition is always false
Modified:
head/sys/dev/evdev/uinput.c
Modified: head/sys/dev/evdev/uinput.c
==============================================================================
--- head/sys/dev/evdev/uinput.c Sun Oct 2 01:42:45 2016 (r306577)
+++ head/sys/dev/evdev/uinput.c Sun Oct 2 03:06:58 2016 (r306578)
@@ -527,7 +527,7 @@ uinput_ioctl_sub(struct uinput_cdev_stat
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,
More information about the svn-src-all
mailing list