aboutsummaryrefslogtreecommitdiff
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-09-06 23:29:46 +0200
committerTom Rini <trini@konsulko.com>2023-09-14 10:42:24 -0400
commit6a595c2f67e0647fc8360c86aa765dff6a667ced (patch)
treea659b639ae0974b76b01ce80fd560c2abf30961a /common/dlmalloc.c
parentbb7c4dcc833f64c1c550d5875c3ec670edcf3e5f (diff)
downloadu-boot-6a595c2f67e0647fc8360c86aa765dff6a667ced.zip
u-boot-6a595c2f67e0647fc8360c86aa765dff6a667ced.tar.gz
u-boot-6a595c2f67e0647fc8360c86aa765dff6a667ced.tar.bz2
common: malloc: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162ac8f8 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 0f9b726..ebf0f27 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -575,19 +575,6 @@ static mbinptr av_[NAV * 2 + 2] = {
IAV(120), IAV(121), IAV(122), IAV(123), IAV(124), IAV(125), IAV(126), IAV(127)
};
-#ifdef CONFIG_NEEDS_MANUAL_RELOC
-static void malloc_bin_reloc(void)
-{
- mbinptr *p = &av_[2];
- size_t i;
-
- for (i = 2; i < ARRAY_SIZE(av_); ++i, ++p)
- *p = (mbinptr)((ulong)*p + gd->reloc_off);
-}
-#else
-static inline void malloc_bin_reloc(void) {}
-#endif
-
#ifdef CONFIG_SYS_MALLOC_DEFAULT_TO_INIT
static void malloc_init(void);
#endif
@@ -634,7 +621,6 @@ void mem_malloc_init(ulong start, ulong size)
#ifdef CONFIG_SYS_MALLOC_CLEAR_ON_INIT
memset((void *)mem_malloc_start, 0x0, size);
#endif
- malloc_bin_reloc();
}
/* field-extraction macros */