Remove unsigned comparison < 0
Found by: LLVM Reviewed by: luigi
This commit is contained in:
parent
5df87b21d3
commit
3de1bd9502
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254031
@ -169,7 +169,7 @@ static int user_frac_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
error = sysctl_handle_int(oidp, &val, 0, req);
|
||||
if (error || !req->newptr )
|
||||
return (error);
|
||||
if (val < 0 || val > 99)
|
||||
if (val > 99)
|
||||
return (EINVAL);
|
||||
|
||||
mtx_lock(&poll_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user