Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 08:53:42 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230531 - head/sys/netinet6
Message-ID:  <201201250853.q0P8rgEA015319@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Wed Jan 25 08:53:42 2012
New Revision: 230531
URL: http://svn.freebsd.org/changeset/base/230531

Log:
  Remove unused variable.
  
  The actual ia6->ia6_lifetime access is hidden in
  IFA6_IS_INVALID/IFA6_IS_DEPRECATED macros since a long time ago
  (see netinet6/nd6.c, r1.104 of KAME for the reference).
  
  MFC after:	3 days

Modified:
  head/sys/netinet6/nd6.c

Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c	Wed Jan 25 08:42:19 2012	(r230530)
+++ head/sys/netinet6/nd6.c	Wed Jan 25 08:53:42 2012	(r230531)
@@ -575,7 +575,6 @@ nd6_timer(void *arg)
 	struct nd_defrouter *dr, *ndr;
 	struct nd_prefix *pr, *npr;
 	struct in6_ifaddr *ia6, *nia6;
-	struct in6_addrlifetime *lt6;
 
 	callout_reset(&V_nd6_timer_ch, V_nd6_prune * hz,
 	    nd6_timer, curvnet);
@@ -598,7 +597,6 @@ nd6_timer(void *arg)
   addrloop:
 	TAILQ_FOREACH_SAFE(ia6, &V_in6_ifaddrhead, ia_link, nia6) {
 		/* check address lifetime */
-		lt6 = &ia6->ia6_lifetime;
 		if (IFA6_IS_INVALID(ia6)) {
 			int regen = 0;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201250853.q0P8rgEA015319>