diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-09-06 23:29:51 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-14 10:42:24 -0400 |
commit | 8658370a92f197aea9f854b2f94a3cd702d2713a (patch) | |
tree | c474efc37a775b79afcfa6463f080facafa2f6ce /cmd | |
parent | a8246503b1556852c03d7450c2a6b0e2e9b073ed (diff) | |
download | u-boot-8658370a92f197aea9f854b2f94a3cd702d2713a.tar.gz u-boot-8658370a92f197aea9f854b2f94a3cd702d2713a.tar.bz2 u-boot-8658370a92f197aea9f854b2f94a3cd702d2713a.zip |
cmd: date: 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/date.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cmd/date.c b/cmd/date.c index fe9c8c6534..4f98b470ca 100644 --- a/cmd/date.c +++ b/cmd/date.c @@ -20,12 +20,6 @@ static const char * const weekdays[] = { "Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", }; -#ifdef CONFIG_NEEDS_MANUAL_RELOC -#define RELOC(a) ((typeof(a))((unsigned long)(a) + gd->reloc_off)) -#else -#define RELOC(a) a -#endif - int mk_date (const char *, struct rtc_time *); static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 }; @@ -113,7 +107,7 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc, printf ("Date: %4d-%02d-%02d (%sday) Time: %2d:%02d:%02d\n", tm.tm_year, tm.tm_mon, tm.tm_mday, (tm.tm_wday<0 || tm.tm_wday>6) ? - "unknown " : RELOC(weekdays[tm.tm_wday]), + "unknown " : weekdays[tm.tm_wday], tm.tm_hour, tm.tm_min, tm.tm_sec); break; |