From ca695e080708231ffabb1a30aa19d30e53e6885f Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 15 Oct 2013 10:11:23 +0000 Subject: [PATCH] Remove useless check of ia6 against NULL, right after dereferencing it. --- sys/netinet6/ip6_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index a94d5c22c509..54d5856ce094 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -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; }