aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-09-06 23:29:53 +0200
committerTom Rini <trini@konsulko.com>2023-09-14 10:42:24 -0400
commita28cc807fa3abbd3602982c88f1c419c80a7e8b8 (patch)
tree51c9446f0d911f569bba9706fab6c68e017d3fd2 /cmd
parent05f84bd2acc698b22395f14b1e78825a6c085d6a (diff)
downloadu-boot-a28cc807fa3abbd3602982c88f1c419c80a7e8b8.zip
u-boot-a28cc807fa3abbd3602982c88f1c419c80a7e8b8.tar.gz
u-boot-a28cc807fa3abbd3602982c88f1c419c80a7e8b8.tar.bz2
cmd: nvedit: 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 'cmd')
-rw-r--r--cmd/nvedit.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 9e4ee4b..fe99157 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -407,11 +407,7 @@ static int print_active_callback(struct env_entry *entry)
for (i = 0, clbkp = ll_entry_start(struct env_clbk_tbl, env_clbk);
i < num_callbacks;
i++, clbkp++) {
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
- if (entry->callback == clbkp->callback + gd->reloc_off)
-#else
if (entry->callback == clbkp->callback)
-#endif
break;
}
@@ -1222,13 +1218,6 @@ static struct cmd_tbl cmd_env_sub[] = {
#endif
};
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-void env_reloc(void)
-{
- fixup_cmdtable(cmd_env_sub, ARRAY_SIZE(cmd_env_sub));
-}
-#endif
-
static int do_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
struct cmd_tbl *cp;