diff options
author | pluknet <pluknet@FreeBSD.org> | 2013-02-08 09:54:53 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2013-02-08 09:54:53 +0000 |
commit | a0d0dabc8f0d86b1f96204b94eac32202f1bda12 (patch) | |
tree | f973ca99b1c8d237657c8c917aed2a37eaea77e6 /sys/cddl | |
parent | cfebb21d9910a5d21da481b2e73327d5bd39cf98 (diff) | |
download | FreeBSD-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.c | 2 |
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); |