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];
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to