Remove unsigned < 0 check.

This commit is contained in:
Gleb Smirnoff 2013-10-15 10:12:19 +00:00
parent ca695e0807
commit 3fa98cf9ac

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)