From 2bf7defdb6baa019c4e684234830ef11c00af899 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 31 Dec 2020 12:35:11 +0100 Subject: [PATCH] alloc: remove a redundant call to platform_shared_commit() alloc_block() will call platform_shared_commit() on the map too, no need to do that twice. Signed-off-by: Guennadi Liakhovetski --- src/lib/alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/alloc.c b/src/lib/alloc.c index bfb528139..bde1633eb 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -859,8 +859,6 @@ static void *alloc_heap_buffer(struct mm_heap *heap, uint32_t flags, continue; if (alignment <= 1) { - platform_shared_commit(map, sizeof(*map)); - /* found: grab a block */ ptr = alloc_block(heap, i, caps, alignment); break;