Skip to contentSkip to conversation

board_init: remove meaningless increment in board_init_f_init_reserve()

PATCH New Masahiro Yamada 2 participants 2 messages Jan 8, 2020 – Jan 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board_init: remove meaningless increment in board_init_f_init_reserve()

The base is not used in the code that follows this increment.

---

 common/init/board_init.c | 2 --
 1 file changed, 2 deletions(-)
common/init/board_init.c +0 -2
index e52106966d49..315168672420 100644
@@ -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))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 board_init: remove meaningless increment in board_init_f_init_reserve()

Quoted 3 lines · Masahiro Yamada

The base is not used in the code that follows this increment.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/0759b1c6/attachment.sig>