cmd: nvedit: Remove unused NEEDS_MANUAL_RELOC code bits

The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8 ("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
Marek Vasut 2023-09-06 23:29:53 +02:00 committed by Tom Rini
parent 05f84bd2ac
commit a28cc807fa
3 changed files with 0 additions and 20 deletions

View file

@ -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); for (i = 0, clbkp = ll_entry_start(struct env_clbk_tbl, env_clbk);
i < num_callbacks; i < num_callbacks;
i++, clbkp++) { i++, clbkp++) {
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
if (entry->callback == clbkp->callback + gd->reloc_off)
#else
if (entry->callback == clbkp->callback) if (entry->callback == clbkp->callback)
#endif
break; break;
} }
@ -1222,13 +1218,6 @@ static struct cmd_tbl cmd_env_sub[] = {
#endif #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[]) static int do_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{ {
struct cmd_tbl *cp; struct cmd_tbl *cp;

1
env/common.c vendored
View file

@ -429,7 +429,6 @@ int env_export(env_t *env_out)
void env_relocate(void) void env_relocate(void)
{ {
#if defined(CONFIG_NEEDS_MANUAL_RELOC) #if defined(CONFIG_NEEDS_MANUAL_RELOC)
env_reloc();
env_fix_drivers(); env_fix_drivers();
env_htab.change_ok += gd->reloc_off; env_htab.change_ok += gd->reloc_off;
#endif #endif

View file

@ -356,14 +356,6 @@ char *env_get_default(const char *name);
/* [re]set to the default environment */ /* [re]set to the default environment */
void env_set_default(const char *s, int flags); void env_set_default(const char *s, int flags);
/**
* env_reloc() - Relocate the 'env' sub-commands
*
* This is used for those unfortunate archs with crappy toolchains
*/
void env_reloc(void);
/** /**
* env_import_fdt() - Import environment values from device tree blob * env_import_fdt() - Import environment values from device tree blob
* *