Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2013 07:22:56 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254031 - head/sys/kern
Message-ID:  <201308070722.r777Mu3N080119@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Wed Aug  7 07:22:56 2013
New Revision: 254031
URL: http://svnweb.freebsd.org/changeset/base/254031

Log:
  Remove unsigned comparison < 0
  
  Found by:	LLVM
  Reviewed by:	luigi

Modified:
  head/sys/kern/kern_poll.c

Modified: head/sys/kern/kern_poll.c
==============================================================================
--- head/sys/kern/kern_poll.c	Wed Aug  7 06:39:19 2013	(r254030)
+++ head/sys/kern/kern_poll.c	Wed Aug  7 07:22:56 2013	(r254031)
@@ -169,7 +169,7 @@ static int user_frac_sysctl(SYSCTL_HANDL
 	error = sysctl_handle_int(oidp, &val, 0, req);
 	if (error || !req->newptr )
 		return (error);
-	if (val < 0 || val > 99)
+	if (val > 99)
 		return (EINVAL);
 
 	mtx_lock(&poll_mtx);



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