Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2016 02:31:49 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r307766 - stable/11/sys/dev/evdev
Message-ID:  <201610220231.u9M2Vn03093496@repo.freebsd.org>

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



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