From 05f6a43bd474faa087d6969ca4f4eb2b08df1f58 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Tue, 20 Feb 2018 00:49:46 +0100 Subject: [PATCH] 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). --- include/common/memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/memory.h b/include/common/memory.h index fce0d5fe9..52ca88ef5 100644 --- a/include/common/memory.h +++ b/include/common/memory.h @@ -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); } }