diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-09-07 09:46:06 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-09-09 16:28:05 -0400 |
| commit | 4aec430ce30fc63b6da8f4fa0223e58322989274 (patch) | |
| tree | 07e9255425573d5fe098caead6be0579b06ad971 /bgpd/bgp_fsm.h | |
| parent | bee4e27e78506638a32b0beac0bb1daad4d14a44 (diff) | |
bgpd: Remove BGP_EVENT_FLUSH and just use event_cancel_event_ready
The usage of BGP_EVENT_FLUSH is unnecessarily abstracting the
call into event_cancel_event_ready and in addtion the macro
was not always being used! Just convert to using the actual
event_cancel_event_ready function directly.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_fsm.h')
| -rw-r--r-- | bgpd/bgp_fsm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h index 1f53ac6118..0a36e0009e 100644 --- a/bgpd/bgp_fsm.h +++ b/bgpd/bgp_fsm.h @@ -27,12 +27,6 @@ enum bgp_fsm_state_progress { event_add_event(bm->master, bgp_event, (P), (E), NULL); \ } while (0) -#define BGP_EVENT_FLUSH(P) \ - do { \ - assert(peer); \ - event_cancel_event_ready(bm->master, (P)); \ - } while (0) - #define BGP_UPDATE_GROUP_TIMER_ON(T, F) \ do { \ if (BGP_SUPPRESS_FIB_ENABLED(peer->bgp) && \ |
