From: Donald Sharp Date: Thu, 22 Aug 2024 17:32:20 +0000 (-0400) Subject: bgpd: global_gr_mode does not need to be set twice X-Git-Tag: base_10.2~170^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4344ac1d288bc0834072261fcd7106391d505424;p=matthieu%2Ffrr.git bgpd: global_gr_mode does not need to be set twice Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 98ebf51385..42ba54ab7b 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -2933,7 +2933,7 @@ static inline bool gr_mode_matches(enum peer_mode peer_gr_mode, unsigned int bgp_peer_gr_action(struct peer *peer, enum peer_mode old_state, enum peer_mode new_state) { - enum global_mode global_gr_mode = bgp_global_gr_mode_get(peer->bgp); + enum global_mode global_gr_mode; bool session_reset = true; if (old_state == new_state)