Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2016 03:06:59 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306578 - head/sys/dev/evdev
Message-ID:  <201610020306.u9236xTc047357@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610020306.u9236xTc047357>