summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2012-01-25 08:53:42 +0000
committerpluknet <pluknet@FreeBSD.org>2012-01-25 08:53:42 +0000
commitcf0bd26fe1d54a23d4ceabe71a54dd8000367d57 (patch)
treecf0f56418f7fb61fef1a1a323f1b4ed86c718d52
parent11c560ec5e9b4b4c1e625e3f949adc3e5f025826 (diff)
downloadFreeBSD-src-cf0bd26fe1d54a23d4ceabe71a54dd8000367d57.zip
FreeBSD-src-cf0bd26fe1d54a23d4ceabe71a54dd8000367d57.tar.gz
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
-rw-r--r--sys/netinet6/nd6.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 58af0be..ec523fc 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -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;
OpenPOWER on IntegriCloud