Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2013 09:54:53 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246538 - head/sys/cddl/dev/dtrace
Message-ID:  <201302080954.r189src4040636@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Fri Feb  8 09:54:53 2013
New Revision: 246538
URL: http://svnweb.freebsd.org/changeset/base/246538

Log:
  Fix warning: comparison of unsigned expression < 0 is always false.
  
  Reported by:	clang

Modified:
  head/sys/cddl/dev/dtrace/dtrace_ioctl.c

Modified: head/sys/cddl/dev/dtrace/dtrace_ioctl.c
==============================================================================
--- head/sys/cddl/dev/dtrace/dtrace_ioctl.c	Fri Feb  8 09:11:55 2013	(r246537)
+++ head/sys/cddl/dev/dtrace/dtrace_ioctl.c	Fri Feb  8 09:54:53 2013	(r246538)
@@ -215,7 +215,7 @@ dtrace_ioctl(struct cdev *dev, u_long cm
 		    "DTRACEIOC_AGGSNAP":"DTRACEIOC_BUFSNAP",
 		    curcpu, desc.dtbd_cpu);
 
-		if (desc.dtbd_cpu < 0 || desc.dtbd_cpu >= NCPU)
+		if (desc.dtbd_cpu >= NCPU)
 			return (ENOENT);
 		if (pcpu_find(desc.dtbd_cpu) == NULL)
 			return (ENOENT);



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