Fix warning: comparison of unsigned expression < 0 is always false.
Reported by: clang
This commit is contained in:
parent
d6aee93f98
commit
3c56b4f165
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246538
@ -215,7 +215,7 @@ dtrace_ioctl(struct cdev *dev, u_long cmd, caddr_t addr,
|
|||||||
"DTRACEIOC_AGGSNAP":"DTRACEIOC_BUFSNAP",
|
"DTRACEIOC_AGGSNAP":"DTRACEIOC_BUFSNAP",
|
||||||
curcpu, desc.dtbd_cpu);
|
curcpu, desc.dtbd_cpu);
|
||||||
|
|
||||||
if (desc.dtbd_cpu < 0 || desc.dtbd_cpu >= NCPU)
|
if (desc.dtbd_cpu >= NCPU)
|
||||||
return (ENOENT);
|
return (ENOENT);
|
||||||
if (pcpu_find(desc.dtbd_cpu) == NULL)
|
if (pcpu_find(desc.dtbd_cpu) == NULL)
|
||||||
return (ENOENT);
|
return (ENOENT);
|
||||||
|
Loading…
Reference in New Issue
Block a user