From 3c56b4f165aa3d1679e137666d7f9e818f8474ab Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Fri, 8 Feb 2013 09:54:53 +0000 Subject: [PATCH] Fix warning: comparison of unsigned expression < 0 is always false. Reported by: clang --- sys/cddl/dev/dtrace/dtrace_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/dtrace_ioctl.c b/sys/cddl/dev/dtrace/dtrace_ioctl.c index fbc891d444f6..6a01e132ed54 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);