From 3de1bd950210d9f5c3acb783459ed2e39108f98e Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Wed, 7 Aug 2013 07:22:56 +0000 Subject: Remove unsigned comparison < 0 Found by: LLVM Reviewed by: luigi --- sys/kern/kern_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_poll.c') diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index a79161ece5cb..349f338f48af 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -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); -- cgit v1.2.3