From: Donatas Abraitis Date: Thu, 23 Dec 2021 12:41:11 +0000 (+0200) Subject: bgpd: Drop `if 0` blocks X-Git-Tag: base_8.2~97^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f5827f368981ac9b3f130a6fd444d7cdcc6faf1a;p=mirror%2Ffrr.git bgpd: Drop `if 0` blocks Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 7ecd3c29e2..d8c2c98f4f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -307,22 +307,10 @@ struct bgp_path_info *bgp_path_info_unlock(struct bgp_path_info *path) path->lock--; if (path->lock == 0) { -#if 0 - zlog_debug ("%s: unlocked and freeing", __func__); - zlog_backtrace (LOG_DEBUG); -#endif bgp_path_info_free(path); return NULL; } -#if 0 - if (path->lock == 1) - { - zlog_debug ("%s: unlocked to 1", __func__); - zlog_backtrace (LOG_DEBUG); - } -#endif - return path; } diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 19c7020d99..5a6d95666f 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1185,10 +1185,6 @@ struct peer *peer_lock_with_caller(const char *name, struct peer *peer) { assert(peer && (peer->lock >= 0)); -#if 0 - zlog_debug("%s peer_lock %p %d", name, peer, peer->lock); -#endif - peer->lock++; return peer; @@ -1201,10 +1197,6 @@ struct peer *peer_unlock_with_caller(const char *name, struct peer *peer) { assert(peer && (peer->lock > 0)); -#if 0 - zlog_debug("%s peer_unlock %p %d", name, peer, peer->lock); -#endif - peer->lock--; if (peer->lock == 0) {