diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-09-06 23:29:41 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-14 10:42:24 -0400 |
commit | 446d6643033edffd4b832de71ef190533398bd91 (patch) | |
tree | 9c3629262790ef7af2bc63b98b02c47de76a5284 /boot/bootm_os.c | |
parent | 3cba5a115ff8b5aeca62e5ae7dfad6bacb32e9fd (diff) |
boot: 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 'boot/bootm_os.c')
-rw-r--r-- | boot/bootm_os.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/boot/bootm_os.c b/boot/bootm_os.c index 99ff0e6c02..9c035b5be8 100644 --- a/boot/bootm_os.c +++ b/boot/bootm_os.c @@ -609,19 +609,5 @@ int boot_selected_os(int argc, char *const argv[], int state, boot_os_fn *bootm_os_get_boot_func(int os) { -#ifdef CONFIG_NEEDS_MANUAL_RELOC - static bool relocated; - - if (!relocated) { - int i; - - /* relocate boot function table */ - for (i = 0; i < ARRAY_SIZE(boot_os); i++) - if (boot_os[i] != NULL) - boot_os[i] += gd->reloc_off; - - relocated = true; - } -#endif return boot_os[os]; } |