summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c12
-rw-r--r--bgpd/bgpd.c8
2 files changed, 0 insertions, 20 deletions
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) {