Return mempool instead of enum
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
a0cccb8702
commit
0e8758528b
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user