diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-05-08 16:02:15 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-05-08 16:02:15 +0200 |
commit | a8db605731412abb5579a41efdf0361b7087eeb9 (patch) | |
tree | ec7a49b9d626888d691663d6a70734d378ff2f2e /bgpd | |
parent | Merge pull request #15942 from anlancs/isisd/doc-flex (diff) | |
download | frr-a8db605731412abb5579a41efdf0361b7087eeb9.tar.xz frr-a8db605731412abb5579a41efdf0361b7087eeb9.zip |
bgpd: Remove redundant recursion flag variable
Reuse an existing one.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_zebra.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 52c75a3dc..e219dc536 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1537,7 +1537,6 @@ bgp_zebra_announce_actual(struct bgp_dest *dest, struct bgp_path_info *info, route_tag_t tag; bool is_add; uint32_t nhg_id = 0; - uint32_t recursion_flag = 0; struct bgp_table *table = bgp_dest_table(dest); const struct prefix *p = bgp_dest_get_prefix(dest); @@ -1655,11 +1654,8 @@ bgp_zebra_announce_actual(struct bgp_dest *dest, struct bgp_path_info *info, api.metric, api.tag, api.nexthop_num, nhg_id); bgp_debug_zebra_nh(&api); - if (CHECK_FLAG(api.flags, ZEBRA_FLAG_ALLOW_RECURSION)) - recursion_flag = 1; - zlog_debug("%s: %pFX: announcing to zebra (recursion %sset)", - __func__, p, (recursion_flag ? "" : "NOT ")); + __func__, p, (allow_recursion ? "" : "NOT ")); } return zclient_route_send(is_add ? ZEBRA_ROUTE_ADD : ZEBRA_ROUTE_DELETE, zclient, &api); |