summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2013-02-08 09:54:53 +0000
committerpluknet <pluknet@FreeBSD.org>2013-02-08 09:54:53 +0000
commita0d0dabc8f0d86b1f96204b94eac32202f1bda12 (patch)
treef973ca99b1c8d237657c8c917aed2a37eaea77e6 /sys/cddl
parentcfebb21d9910a5d21da481b2e73327d5bd39cf98 (diff)
downloadFreeBSD-src-a0d0dabc8f0d86b1f96204b94eac32202f1bda12.zip
FreeBSD-src-a0d0dabc8f0d86b1f96204b94eac32202f1bda12.tar.gz
Fix warning: comparison of unsigned expression < 0 is always false.
Reported by: clang
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/dev/dtrace/dtrace_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/dev/dtrace/dtrace_ioctl.c b/sys/cddl/dev/dtrace/dtrace_ioctl.c
index fbc891d..6a01e13 100644
--- a/sys/cddl/dev/dtrace/dtrace_ioctl.c
+++ b/sys/cddl/dev/dtrace/dtrace_ioctl.c
@@ -215,7 +215,7 @@ dtrace_ioctl(struct cdev *dev, u_long cmd, caddr_t addr,
"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);
OpenPOWER on IntegriCloud