From: Donald Sharp Date: Tue, 5 Jun 2018 16:56:46 +0000 (-0400) Subject: bgpd: first variable is set but never used. X-Git-Tag: frr-6.1-dev~364^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cb28a7a514556afe2ea1477bc06e41a33f0fdc19;p=mirror%2Ffrr.git bgpd: first variable is set but never used. For the bgp_aggregate_route function it is set but never used. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 382638aee7..324c402aa9 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5449,7 +5449,6 @@ static void bgp_aggregate_route(struct bgp *bgp, struct prefix *p, struct community *commerge = NULL; struct bgp_info *ri; struct bgp_info *new; - bool first = true; unsigned long match = 0; uint8_t atomic_aggregate = 0; @@ -5480,9 +5479,6 @@ static void bgp_aggregate_route(struct bgp *bgp, struct prefix *p, if (del && ri == del) continue; - if (!rinew && first) - first = false; - if (ri->attr->flag & ATTR_FLAG_BIT(BGP_ATTR_ATOMIC_AGGREGATE)) atomic_aggregate = 1;