]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Drop `if 0` blocks
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 23 Dec 2021 12:41:11 +0000 (14:41 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 23 Dec 2021 12:41:11 +0000 (14:41 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_route.c
bgpd/bgpd.c

index 7ecd3c29e2e9f7c6c5b39aef89d8a1675a61b4f1..d8c2c98f4f2011d56f25d43684c7412e3c03b082 100644 (file)
@@ -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;
 }
 
index 19c7020d9982f9bd682340e36f640650dfc21a4e..5a6d95666f35ccb20d1ec4683607833421c84744 100644 (file)
@@ -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) {