summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-04-17 18:38:21 -0400
committerGitHub <noreply@github.com>2025-04-17 18:38:21 -0400
commit5d4c7d2ece3e1da480d7afbad645ba8e5bf92f1c (patch)
tree0eaefe2a19548743e531587c54e1fca28c538464 /bgpd
parent0850ae7db7257a4db19b072a9c6b28b8ff9f9605 (diff)
parent2d423186259246cba7ba0aaceab2f70a4bce00f0 (diff)
Merge pull request #18675 from mjstapp/fix_clang_18_warnings
lib,pimd,bgpd,bfdd: Fix clang 18 warnings
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_bmp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c
index b1bff82b05..e09e7b4941 100644
--- a/bgpd/bgp_bmp.c
+++ b/bgpd/bgp_bmp.c
@@ -3542,7 +3542,6 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
struct bmp_targets *bt;
struct listnode *node;
struct bmp_imported_bgp *bib;
- int ret = 0;
struct stream *s = bmp_peerstate(bgp->peer_self, withdraw);
struct bmp *bmp;
afi_t afi;
@@ -3553,8 +3552,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
if (bmpbgp) {
frr_each (bmp_targets, &bmpbgp->targets, bt) {
- ret = bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
- withdraw, s);
+ bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
+ withdraw, s);
if (withdraw)
continue;
frr_each (bmp_session, &bt->sessions, bmp) {
@@ -3575,8 +3574,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
frr_each (bmp_imported_bgps, &bt->imported_bgps, bib) {
if (bgp_lookup_by_name(bib->name) != bgp)
continue;
- ret += bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
- withdraw, s);
+ bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
+ withdraw, s);
if (withdraw)
continue;
frr_each (bmp_session, &bt->sessions, bmp) {