Skip to content

Commit 8658370

Browse files
Marek Vasuttrini
Marek Vasut
authored andcommitted
cmd: date: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <[email protected]>
1 parent a824650 commit 8658370

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cmd/date.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ static const char * const weekdays[] = {
2020
"Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur",
2121
};
2222

23-
#ifdef CONFIG_NEEDS_MANUAL_RELOC
24-
#define RELOC(a) ((typeof(a))((unsigned long)(a) + gd->reloc_off))
25-
#else
26-
#define RELOC(a) a
27-
#endif
28-
2923
int mk_date (const char *, struct rtc_time *);
3024

3125
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,
113107
printf ("Date: %4d-%02d-%02d (%sday) Time: %2d:%02d:%02d\n",
114108
tm.tm_year, tm.tm_mon, tm.tm_mday,
115109
(tm.tm_wday<0 || tm.tm_wday>6) ?
116-
"unknown " : RELOC(weekdays[tm.tm_wday]),
110+
"unknown " : weekdays[tm.tm_wday],
117111
tm.tm_hour, tm.tm_min, tm.tm_sec);
118112

119113
break;

0 commit comments

Comments
 (0)