Remove useless check of ia6 against NULL, right after dereferencing it.

This commit is contained in:
Gleb Smirnoff 2013-10-15 10:11:23 +00:00
parent 0218539652
commit ca695e0807

View File

@ -842,7 +842,7 @@ ip6_input(struct mbuf *m)
/* 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 @@ ip6_input(struct mbuf *m)
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;
}