svn commit: r257174 - head/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Sat Oct 26 17:43:19 UTC 2013
Author: glebius
Date: Sat Oct 26 17:43:18 2013
New Revision: 257174
URL: http://svnweb.freebsd.org/changeset/base/257174
Log:
Remove unsigned < 0 comparison.
Modified:
head/sys/netgraph/ng_one2many.c
Modified: head/sys/netgraph/ng_one2many.c
==============================================================================
--- head/sys/netgraph/ng_one2many.c Sat Oct 26 17:40:38 2013 (r257173)
+++ head/sys/netgraph/ng_one2many.c Sat Oct 26 17:43:18 2013 (r257174)
@@ -220,7 +220,7 @@ ng_one2many_newhook(node_p node, hook_p
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];
More information about the svn-src-head
mailing list