From: Tim Duesterhus Date: Mon, 19 Feb 2018 23:49:46 +0000 (+0100) Subject: CLEANUP: pools: Remove unused end label in memory.h X-Git-Tag: v1.9-dev1~411 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05f6a43bd474faa087d6969ca4f4eb2b08df1f58;p=thirdparty%2Fhaproxy.git 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). --- diff --git a/include/common/memory.h b/include/common/memory.h index fce0d5fe93..52ca88ef59 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); } }