Remove unsigned comparison < 0

Found by:	LLVM
Reviewed by:	luigi
This commit is contained in:
Kevin Lo 2013-08-07 07:22:56 +00:00
parent 5df87b21d3
commit 3de1bd9502

View File

@ -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);