svn commit: r307766 - stable/11/sys/dev/evdev

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sat Oct 22 02:31:51 UTC 2016


Author: gonzo
Date: Sat Oct 22 02:31:49 2016
New Revision: 307766
URL: https://svnweb.freebsd.org/changeset/base/307766

Log:
  MFC r306578:
  
  Fix gcc compilation error
  
  input_absinfo.code is unsigned so condition is always false

Modified:
  stable/11/sys/dev/evdev/uinput.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/evdev/uinput.c
==============================================================================
--- stable/11/sys/dev/evdev/uinput.c	Sat Oct 22 02:26:33 2016	(r307765)
+++ stable/11/sys/dev/evdev/uinput.c	Sat Oct 22 02:31:49 2016	(r307766)
@@ -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