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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2020-12-31 12:35:11 +01:00 committed by Liam Girdwood
parent ad7de3f572
commit 2bf7defdb6
1 changed files with 0 additions and 2 deletions

View File

@ -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;