From 39f046dac2da6bbf2275a0094dea3aae5d5f21f1 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Sat, 31 Jan 2009 12:24:53 +0000 Subject: [PATCH] Coalesce two consecutive #ifdef IPSEC blocks. Move the skip_ipsec: label below the goto as we can never have ipsecrt set if we get to that label so there is no need to check. MFC after: 2 weeks --- sys/netinet6/ip6_forward.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index db0094c48f6..0ce591f37e6 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -350,12 +350,9 @@ ip6_forward(struct mbuf *m, int srcrt) if (dst != NULL && rt != NULL) ipsecrt = 1; } - skip_ipsec: -#endif /* IPSEC */ - -#ifdef IPSEC if (ipsecrt) goto skip_routing; +skip_ipsec: #endif dst = (struct sockaddr_in6 *)&V_ip6_forward_rt.ro_dst;