From: Marek Vasut Date: Wed, 6 Sep 2023 21:29:45 +0000 (+0200) Subject: common: hush: Remove unused NEEDS_MANUAL_RELOC code bits X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=bb7c4dcc833f64c1c550d5875c3ec670edcf3e5f;p=u-boot.git common: hush: 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 --- diff --git a/common/cli_hush.c b/common/cli_hush.c index cee87249bc..9cda97f30e 100644 --- a/common/cli_hush.c +++ b/common/cli_hush.c @@ -3305,19 +3305,6 @@ int parse_file_outer(void) } #ifdef __U_BOOT__ -#ifdef CONFIG_NEEDS_MANUAL_RELOC -static void u_boot_hush_reloc(void) -{ - unsigned long addr; - struct reserved_combo *r; - - for (r=reserved_list; rliteral) + gd->reloc_off; - r->literal = (char *)addr; - } -} -#endif - int u_boot_hush_start(void) { if (top_vars == NULL) { @@ -3327,9 +3314,6 @@ int u_boot_hush_start(void) top_vars->next = NULL; top_vars->flg_export = 0; top_vars->flg_read_only = 1; -#ifdef CONFIG_NEEDS_MANUAL_RELOC - u_boot_hush_reloc(); -#endif } return 0; }