svn commit: r256517 - head/sys/netinet6

Gleb Smirnoff glebius at FreeBSD.org
Tue Oct 15 10:12:19 UTC 2013


Author: glebius
Date: Tue Oct 15 10:12:19 2013
New Revision: 256517
URL: http://svnweb.freebsd.org/changeset/base/256517

Log:
  Remove unsigned < 0 check.

Modified:
  head/sys/netinet6/ip6_output.c

Modified: head/sys/netinet6/ip6_output.c
==============================================================================
--- head/sys/netinet6/ip6_output.c	Tue Oct 15 10:11:23 2013	(r256516)
+++ head/sys/netinet6/ip6_output.c	Tue Oct 15 10:12:19 2013	(r256517)
@@ -2659,10 +2659,8 @@ ip6_setpktopt(int optname, u_char *buf, 
 		}
 
 		/* validate the interface index if specified. */
-		if (pktinfo->ipi6_ifindex > V_if_index ||
-		    pktinfo->ipi6_ifindex < 0) {
+		if (pktinfo->ipi6_ifindex > V_if_index)
 			 return (ENXIO);
-		}
 		if (pktinfo->ipi6_ifindex) {
 			ifp = ifnet_byindex(pktinfo->ipi6_ifindex);
 			if (ifp == NULL)


More information about the svn-src-head mailing list