diff options
author | 2015-10-19 11:59:26 +0000 | |
---|---|---|
committer | 2015-10-19 11:59:26 +0000 | |
commit | ea7fdc0372b9ea876836f1f2ec609a556971931c (patch) | |
tree | 442b5beb6589dd933ef7d68553b20b687e01a5dc /sys/netinet6 | |
parent | optarg and optind are declared by unistd.h (diff) | |
download | wireguard-openbsd-ea7fdc0372b9ea876836f1f2ec609a556971931c.tar.xz wireguard-openbsd-ea7fdc0372b9ea876836f1f2ec609a556971931c.zip |
Remove superfluous NULL checks.
ifa are refcounted to ensure that rt_ifa is always valid.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/frag6.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c index 890f7e4dcdc..3e27729e1d6 100644 --- a/sys/netinet6/frag6.c +++ b/sys/netinet6/frag6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frag6.c,v 1.63 2015/09/10 16:39:39 mpi Exp $ */ +/* $OpenBSD: frag6.c,v 1.64 2015/10/19 11:59:26 mpi Exp $ */ /* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */ /* @@ -183,10 +183,8 @@ frag6_input(struct mbuf **mp, int *offp, int proto) rt = rtalloc_mpath(sin6tosa(&dst), &ip6->ip6_src.s6_addr32[0], m->m_pkthdr.ph_rtableid); - if (rt != NULL) { - if (rt->rt_ifa != NULL) - dstifp = ifatoia6(rt->rt_ifa)->ia_ifp; + dstifp = ifatoia6(rt->rt_ifa)->ia_ifp; rtfree(rt); rt = NULL; } |