summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-10-26 17:43:18 +0000
committerglebius <glebius@FreeBSD.org>2013-10-26 17:43:18 +0000
commit74e172a3758ce22d281d7b4fd2715bddef59b238 (patch)
tree039557efbc883269bfc27c1872f1937012b1d643
parentb86044b9a978e345ee170237996f0998b5a1ece9 (diff)
downloadFreeBSD-src-74e172a3758ce22d281d7b4fd2715bddef59b238.zip
FreeBSD-src-74e172a3758ce22d281d7b4fd2715bddef59b238.tar.gz
Remove unsigned < 0 comparison.
-rw-r--r--sys/netgraph/ng_one2many.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_one2many.c b/sys/netgraph/ng_one2many.c
index 8171005..ad1d3d8 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];
OpenPOWER on IntegriCloud