From: Renato Westphal Date: Sat, 30 Mar 2019 04:04:35 +0000 (-0300) Subject: bgpd: remove unused variable X-Git-Tag: 7.1_pulled~120^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b1ec871ab1bf9fe1cde786df87765537a25a9e92;p=mirror%2Ffrr.git bgpd: remove unused variable pinum (renamed from rinum) was never used for anything useful since the initial revision ~17 years ago. Get rid of it. Signed-off-by: Renato Westphal --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f7768f921c..5716cc0896 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -10249,7 +10249,6 @@ static int bgp_table_stats_walker(struct thread *t) for (rn = top; rn; rn = bgp_route_next(rn)) { struct bgp_path_info *pi; struct bgp_node *prn = bgp_node_parent_nolock(rn); - unsigned int pinum = 0; if (rn == top) continue; @@ -10281,7 +10280,6 @@ static int bgp_table_stats_walker(struct thread *t) ts->counts[BGP_STATS_MAX_AGGREGATEABLE]++; for (pi = bgp_node_get_bgp_path_info(rn); pi; pi = pi->next) { - pinum++; ts->counts[BGP_STATS_RIB]++; if (pi->attr