mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
CLEANUP: pools: Remove unused end label in memory.h
This removes the end label from memory.h. The labels are unused as of cf975d46bca2515056a4f55e55fedbbc7b4eda59 which is unreleased (and incidentally the first commit containing those labels, thus they never have been used).
This commit is contained in:
parent
66888f907c
commit
05f6a43bd4
@ -144,7 +144,7 @@ static inline void *__pool_get_first(struct pool_head *pool)
|
||||
__ha_barrier_load();
|
||||
new.free_list = *POOL_LINK(pool, cmp.free_list);
|
||||
} while (__ha_cas_dw((void *)&pool->free_list, (void *)&cmp, (void *)&new) == 0);
|
||||
end:
|
||||
|
||||
HA_ATOMIC_ADD(&pool->used, 1);
|
||||
#ifdef DEBUG_MEMORY_POOLS
|
||||
/* keep track of where the element was allocated from */
|
||||
@ -221,7 +221,7 @@ static inline void pool_free(struct pool_head *pool, void *ptr)
|
||||
*POOL_LINK(pool, ptr) = (void *)free_list;
|
||||
__ha_barrier_store();
|
||||
} while (!HA_ATOMIC_CAS(&pool->free_list, (void *)&free_list, ptr));
|
||||
end:
|
||||
|
||||
HA_ATOMIC_SUB(&pool->used, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user