svn commit: r213949 - stable/8/sys/netipsec

Bjoern A. Zeeb bz at FreeBSD.org
Sun Oct 17 09:13:47 UTC 2010


Author: bz
Date: Sun Oct 17 09:13:47 2010
New Revision: 213949
URL: http://svn.freebsd.org/changeset/base/213949

Log:
  MFC r213837:
  
    Remove dead code:
    assignment to a local variable not used anywhere after that.

Modified:
  stable/8/sys/netipsec/ipsec_output.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/netipsec/ipsec_output.c
==============================================================================
--- stable/8/sys/netipsec/ipsec_output.c	Sun Oct 17 08:59:02 2010	(r213948)
+++ stable/8/sys/netipsec/ipsec_output.c	Sun Oct 17 09:13:47 2010	(r213949)
@@ -853,10 +853,8 @@ ipsec6_output_tunnel(struct ipsec_output
 		}
 
 		/* 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);


More information about the svn-src-all mailing list