mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 18:56:41 +00:00
Merge pull request #10261 from ton31337/fix/remove_if0
This commit is contained in:
commit
5af4491693
@ -307,22 +307,10 @@ struct bgp_path_info *bgp_path_info_unlock(struct bgp_path_info *path)
|
|||||||
path->lock--;
|
path->lock--;
|
||||||
|
|
||||||
if (path->lock == 0) {
|
if (path->lock == 0) {
|
||||||
#if 0
|
|
||||||
zlog_debug ("%s: unlocked and freeing", __func__);
|
|
||||||
zlog_backtrace (LOG_DEBUG);
|
|
||||||
#endif
|
|
||||||
bgp_path_info_free(path);
|
bgp_path_info_free(path);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (path->lock == 1)
|
|
||||||
{
|
|
||||||
zlog_debug ("%s: unlocked to 1", __func__);
|
|
||||||
zlog_backtrace (LOG_DEBUG);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1185,10 +1185,6 @@ struct peer *peer_lock_with_caller(const char *name, struct peer *peer)
|
|||||||
{
|
{
|
||||||
assert(peer && (peer->lock >= 0));
|
assert(peer && (peer->lock >= 0));
|
||||||
|
|
||||||
#if 0
|
|
||||||
zlog_debug("%s peer_lock %p %d", name, peer, peer->lock);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
peer->lock++;
|
peer->lock++;
|
||||||
|
|
||||||
return peer;
|
return peer;
|
||||||
@ -1201,10 +1197,6 @@ struct peer *peer_unlock_with_caller(const char *name, struct peer *peer)
|
|||||||
{
|
{
|
||||||
assert(peer && (peer->lock > 0));
|
assert(peer && (peer->lock > 0));
|
||||||
|
|
||||||
#if 0
|
|
||||||
zlog_debug("%s peer_unlock %p %d", name, peer, peer->lock);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
peer->lock--;
|
peer->lock--;
|
||||||
|
|
||||||
if (peer->lock == 0) {
|
if (peer->lock == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user