mirror of https://github.com/thesofproject/sof.git
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:
parent
ad7de3f572
commit
2bf7defdb6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue