]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: pools: Remove unused end label in memory.h
authorTim Duesterhus <tim@bastelstu.be>
Mon, 19 Feb 2018 23:49:46 +0000 (00:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Feb 2018 07:30:13 +0000 (08:30 +0100)
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

index fce0d5fe933a75919d27e3a753f3316aaba75699..52ca88ef59e35905479081cf8769f127c53fcb14 100644 (file)
@@ -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);
        }
 }