From ea006b744b058bb2b6136de963450547d538c62a Mon Sep 17 00:00:00 2001 From: kn Date: Fri, 22 Jul 2022 13:27:17 +0000 Subject: [PATCH] Zap dead store nd6_allocated There since KAME IPv6 import in 1999. OK "Pool statistics has this info already." bluhm --- sys/netinet6/nd6.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 8b6162710c2..72ef8145dbd 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.239 2022/07/22 13:26:00 kn Exp $ */ +/* $OpenBSD: nd6.c,v 1.240 2022/07/22 13:27:17 kn Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -86,7 +86,7 @@ int nd6_debug = 0; TAILQ_HEAD(llinfo_nd6_head, llinfo_nd6) nd6_list; struct pool nd6_pool; /* pool for llinfo_nd6 structures */ -int nd6_inuse, nd6_allocated; +int nd6_inuse; int nd6_recalc_reachtm_interval = ND6_RECALC_REACHTM_INTERVAL; @@ -885,7 +885,6 @@ nd6_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt) break; } nd6_inuse++; - nd6_allocated++; ln->ln_rt = rt; /* this is required for "ndp" command. - shin */ if (req == RTM_ADD) { -- 2.20.1