Return mempool instead of enum

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2021-04-22 14:17:39 +02:00
parent a0cccb8702
commit 0e8758528b

View File

@ -88,7 +88,7 @@ static env_allocator *env_mpool_get_allocator(
unsigned int idx; unsigned int idx;
if (unlikely(count == 0)) if (unlikely(count == 0))
return env_mpool_1; return mallocator->allocator[env_mpool_1];
idx = 31 - __builtin_clz(count); idx = 31 - __builtin_clz(count);