diff mbox

[U-Boot,2/3] m68k: eliminate warnings in do_bootm_linux function

Message ID 1381899184-23315-3-git-send-email-yamada.m@jp.panasonic.com
State Deferred
Delegated to: Tom Rini
Headers show

Commit Message

Masahiro Yamada Oct. 16, 2013, 4:53 a.m. UTC
- delete an unused variable
 - set forcibly some variables to zero

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 *** CAUTION ***
I do not think I am doing right thing.
(I post this patch just to raise the flag.)

Experts of M68K architecture, please fix this correctly.


 arch/m68k/lib/bootm.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c
index 804e01d..e71f593 100644
--- a/arch/m68k/lib/bootm.c
+++ b/arch/m68k/lib/bootm.c
@@ -50,7 +50,6 @@  void arch_lmb_reserve(struct lmb *lmb)
 
 int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
 {
-	ulong rd_len;
 	ulong initrd_start, initrd_end;
 	int ret;
 
@@ -87,6 +86,12 @@  int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
 
 	bootstage_mark(BOOTSTAGE_ID_RUN_OS);
 
+	/* Workaround to eliminate warnings: FIX ME */
+	initrd_start = 0;
+	initrd_end = 0;
+	cmd_start = 0;
+	cmd_end = 0;
+
 	/*
 	 * Linux Kernel Parameters (passing board info data):
 	 *   sp+00: Ignore, side effect of using jsr to jump to kernel