diff mbox series

board_init: remove meaningless increment in board_init_f_init_reserve()

Message ID 20200108112117.8772-1-masahiroy@kernel.org
State Accepted
Commit 9086ab564b93a51d3cb18deb7ac59179e2541285
Headers show
Series board_init: remove meaningless increment in board_init_f_init_reserve() | expand

Commit Message

Masahiro Yamada Jan. 8, 2020, 11:21 a.m. UTC
The base is not used in the code that follows this increment.

Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
---

 common/init/board_init.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Tom Rini Jan. 23, 2020, 10 p.m. UTC | #1
On Wed, Jan 08, 2020 at 08:21:17PM +0900, Masahiro Yamada wrote:

> The base is not used in the code that follows this increment.
> 
> Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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))