Fix warning: comparison of unsigned expression < 0 is always false.
Reported by: clang
This commit is contained in:
parent
d6aee93f98
commit
3c56b4f165
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user