Remove unsigned < 0 check.

This commit is contained in:
glebius 2013-10-15 10:12:19 +00:00
parent cb76bab586
commit 870799d07a

View File

@ -2659,10 +2659,8 @@ ip6_setpktopt(int optname, u_char *buf, int len, struct ip6_pktopts *opt,
}
/* 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)