From patchwork Wed Jan 8 11:21:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 239260 List-Id: U-Boot discussion From: masahiroy at kernel.org (Masahiro Yamada) Date: Wed, 8 Jan 2020 20:21:17 +0900 Subject: [PATCH] board_init: remove meaningless increment in board_init_f_init_reserve() Message-ID: <20200108112117.8772-1-masahiroy@kernel.org> The base is not used in the code that follows this increment. Signed-off-by: Masahiro Yamada --- common/init/board_init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/init/board_init.c b/common/init/board_init.c index e52106966d49..315168672420 100644 --- a/common/init/board_init.c +++ b/common/init/board_init.c @@ -140,8 +140,6 @@ void board_init_f_init_reserve(ulong base) #if CONFIG_VAL(SYS_MALLOC_F_LEN) /* go down one 'early malloc arena' */ gd->malloc_base = base; - /* next alloc will be higher by one 'early malloc arena' size */ - base += CONFIG_VAL(SYS_MALLOC_F_LEN); #endif if (CONFIG_IS_ENABLED(SYS_REPORT_STACK_F_USAGE))