]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: first variable is set but never used.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Jun 2018 16:56:46 +0000 (12:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Jun 2018 16:56:46 +0000 (12:56 -0400)
For the bgp_aggregate_route function it is
set but never used.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c

index 382638aee7cab6079b850c2654eda3c0c3418da1..324c402aa95fefb806f6fdabf1d65c0ce8b80d19 100644 (file)
@@ -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;