Fix warning: comparison of unsigned expression < 0 is always false.

Reported by:	clang
This commit is contained in:
Sergey Kandaurov 2013-02-08 09:54:53 +00:00
parent d6aee93f98
commit 3c56b4f165

View File

@ -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);