From a636d88d99b490f9652a1411fc4e685f66520004 Mon Sep 17 00:00:00 2001 From: daanx Date: Sat, 22 Apr 2023 21:52:49 -0700 Subject: [PATCH] remove unused local --- src/arena.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/arena.c b/src/arena.c index 1f7657eb..ec5e5d6f 100644 --- a/src/arena.c +++ b/src/arena.c @@ -302,10 +302,8 @@ static mi_decl_noinline void* mi_arena_try_alloc(int numa_node, size_t size, siz MI_UNUSED(alignment); mi_assert_internal(alignment <= MI_SEGMENT_ALIGN); const size_t max_arena = mi_atomic_load_relaxed(&mi_arena_count); - const size_t bcount = mi_block_count_of_size(size); if mi_likely(max_arena == 0) return NULL; - mi_assert_internal(size <= mi_arena_block_size(bcount)); - + if (req_arena_id != _mi_arena_id_none()) { // try a specific arena if requested if (mi_arena_id_index(req_arena_id) < max_arena) {