summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-10-14 15:15:22 +0000
committerbz <bz@FreeBSD.org>2010-10-14 15:15:22 +0000
commit7ff23ffda7218293b8d478431a47d5bc98d3620f (patch)
tree6e79764cae61e690514377dbdcb4f09c74eacbbd
parente31270089e3f8d1bf1766149798098eedf2ad888 (diff)
downloadFreeBSD-src-7ff23ffda7218293b8d478431a47d5bc98d3620f.zip
FreeBSD-src-7ff23ffda7218293b8d478431a47d5bc98d3620f.tar.gz
Remove dead code:
assignment to a local variable not used anywhere after that. MFC after: 3 days
-rw-r--r--sys/netipsec/ipsec_output.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c
index 52c990e..2701796 100644
--- a/sys/netipsec/ipsec_output.c
+++ b/sys/netipsec/ipsec_output.c
@@ -853,10 +853,8 @@ ipsec6_output_tunnel(struct ipsec_output_state *state, struct secpolicy *sp, int
}
/* adjust state->dst if tunnel endpoint is offlink */
- if (state->ro->ro_rt->rt_flags & RTF_GATEWAY) {
+ if (state->ro->ro_rt->rt_flags & RTF_GATEWAY)
state->dst = (struct sockaddr *)state->ro->ro_rt->rt_gateway;
- dst6 = (struct sockaddr_in6 *)state->dst;
- }
}
m = ipsec6_splithdr(m);
OpenPOWER on IntegriCloud