mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:58:17 +00:00
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 <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
c2ff8b3ec9
commit
cb28a7a514
@ -5449,7 +5449,6 @@ static void bgp_aggregate_route(struct bgp *bgp, struct prefix *p,
|
|||||||
struct community *commerge = NULL;
|
struct community *commerge = NULL;
|
||||||
struct bgp_info *ri;
|
struct bgp_info *ri;
|
||||||
struct bgp_info *new;
|
struct bgp_info *new;
|
||||||
bool first = true;
|
|
||||||
unsigned long match = 0;
|
unsigned long match = 0;
|
||||||
uint8_t atomic_aggregate = 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)
|
if (del && ri == del)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!rinew && first)
|
|
||||||
first = false;
|
|
||||||
|
|
||||||
if (ri->attr->flag
|
if (ri->attr->flag
|
||||||
& ATTR_FLAG_BIT(BGP_ATTR_ATOMIC_AGGREGATE))
|
& ATTR_FLAG_BIT(BGP_ATTR_ATOMIC_AGGREGATE))
|
||||||
atomic_aggregate = 1;
|
atomic_aggregate = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user