Author: glebius
Date: Tue Oct 15 10:11:23 2013
New Revision: 256516
URL: http://svnweb.freebsd.org/changeset/base/256516
Log:
Remove useless check of ia6 against NULL, right after dereferencing it.
Modified:
head/sys/netinet6/ip6_input.c
Modified: head/sys/netinet6/ip6_input.c
==============================================================================
--- head/sys/netinet6/ip6_input.c Tue Oct 15 10:09:33 2013
(r256515)
+++ head/sys/netinet6/ip6_input.c Tue Oct 15 10:11:23 2013
(r256516)
@@ -842,7 +842,7 @@ passin:
/* Count the packet in the ip address stats */
ia6->ia_ifa.if_ipackets++;
ia6->ia_ifa.if_ibytes += m->m_pkthdr.len;
- if (ia6 != NULL && free_ia6 != 0)
+ if (free_ia6)
ifa_free(&ia6->ia_ifa);
goto hbhcheck;
} else {
@@ -854,7 +854,7 @@ passin:
ip6_sprintf(ip6bufs, &ip6->ip6_src),
ip6_sprintf(ip6bufd, &ip6->ip6_dst)));
- if (ia6 != NULL && free_ia6 != 0)
+ if (free_ia6)
ifa_free(&ia6->ia_ifa);
goto bad;
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"