From: Masahiro Yamada <masahiroy@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCH] board_init: remove meaningless increment in board_init_f_init_reserve()
Date: Wed, 8 Jan 2020 20:21:17 +0900 [thread overview]
Message-ID: <20200108112117.8772-1-masahiroy@kernel.org> (raw)
The base is not used in the code that follows this increment.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
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))
--
2.17.1
next reply other threads:[~2020-01-08 11:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-08 11:21 Masahiro Yamada [this message]
2020-01-23 22:00 ` [PATCH] board_init: remove meaningless increment in board_init_f_init_reserve() Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200108112117.8772-1-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox