Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 17:43:19 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257174 - head/sys/netgraph
Message-ID:  <201310261743.r9QHhJeu065074@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310261743.r9QHhJeu065074>