Remove unsigned comparison < 0
Found by: LLVM Reviewed by: luigi
This commit is contained in:
parent
5df87b21d3
commit
3de1bd9502
@ -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