From 5ecb4fd0dbccef842d7efe0a0c92933b383dbb05 Mon Sep 17 00:00:00 2001 From: Kiran Varaganti Date: Sun, 19 Sep 2021 20:41:31 +0530 Subject: [PATCH] Removed dead code This sanity check (checking top_index != 0) which has been disabled earlier in bli_pool_reinit() by commenting out bli_abort() was unnecessarily computing top_index - this whole statement is commented out. Change-Id: If296754ca8cba3a69d023d4a7ec891f1cbce1d6a --- frame/base/bli_pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frame/base/bli_pool.c b/frame/base/bli_pool.c index d994fe978..7e561983c 100644 --- a/frame/base/bli_pool.c +++ b/frame/base/bli_pool.c @@ -122,6 +122,7 @@ void bli_pool_finalize // Query the total number of blocks currently allocated. const siz_t num_blocks = bli_pool_num_blocks( pool ); +#if 0 // Removing dead code // Query the top_index of the pool. const siz_t top_index = bli_pool_top_index( pool ); @@ -142,6 +143,8 @@ void bli_pool_finalize //bli_abort(); } +#endif + // Query the free() function pointer for the pool. free_ft free_fp = bli_pool_free_fp( pool );