From 1d65bb9bd134d3aa70d30130ae70d174a9131e70 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Sat, 26 Oct 2013 17:43:18 +0000 Subject: [PATCH] Remove unsigned < 0 comparison. --- sys/netgraph/ng_one2many.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_one2many.c b/sys/netgraph/ng_one2many.c index 8171005efa80..ad1d3d882586 100644 --- a/sys/netgraph/ng_one2many.c +++ b/sys/netgraph/ng_one2many.c @@ -220,7 +220,7 @@ ng_one2many_newhook(node_p node, hook_p hook, const char *name) if (!isdigit(*cp) || (cp[0] == '0' && cp[1] != '\0')) return (EINVAL); i = strtoul(cp, &eptr, 10); - if (*eptr != '\0' || i < 0 || i >= NG_ONE2MANY_MAX_LINKS) + if (*eptr != '\0' || i >= NG_ONE2MANY_MAX_LINKS) return (EINVAL); linkNum = (int)i; link = &priv->many[linkNum];