From 2ce4b8085bfd1f1fd583d830a77f2ba4f269ee22 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 15 Oct 2021 02:21:10 +0800 Subject: [PATCH] binfmt: Remove umm_initialize from elf_load since umm_try_initialize will do it automatically Signed-off-by: Xiang Xiao --- binfmt/libelf/libelf_load.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/binfmt/libelf/libelf_load.c b/binfmt/libelf/libelf_load.c index e2c8d398288..943a5f6c2aa 100644 --- a/binfmt/libelf/libelf_load.c +++ b/binfmt/libelf/libelf_load.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include "libelf.h" @@ -291,13 +290,6 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo) berr("ERROR: elf_addrenv_select() failed: %d\n", ret); goto errout_with_buffers; } - -#ifdef CONFIG_BUILD_KERNEL - /* Initialize the user heap */ - - umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE, - up_addrenv_heapsize(&loadinfo->addrenv)); -#endif #endif /* Load ELF section data into memory */