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