diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-12 19:44:10 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-12-05 21:55:24 +0100 |
commit | 8344a6d50b61c09aa4fd623e013095d3aca8ce7b (patch) | |
tree | 53c8a7f74cc080840ca47c001a5992e61e0e03cd /arch/sparc | |
parent | 1f6734cf502586d758b0569f5d921b71277688bd (diff) | |
download | u-boot-8344a6d50b61c09aa4fd623e013095d3aca8ce7b.tar.gz |
sparc: fix unused variable warnings
Fix the build warnings:
board.c: In function 'board_init_f':
board.c:179:8: warning: unused variable 'e'
board.c:178:6: warning: unused variable 'i'
board.c:173:13: warning: unused variable 'cmdtp'
bootm.c: In function 'do_bootm_linux':
bootm.c:101:28: warning: unused variable 'kernend'
bootm.c:101:15: warning: unused variable 'initrd_addr'
bootm.c:100:26: warning: unused variable 'checksum'
bootm.c:100:21: warning: unused variable 'len'
bootm.c:100:15: warning: unused variable 'data'
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/lib/board.c | 3 | ||||
-rw-r--r-- | arch/sparc/lib/bootm.c | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c index 69b5ca4508..519a4fbae7 100644 --- a/arch/sparc/lib/board.c +++ b/arch/sparc/lib/board.c @@ -165,13 +165,10 @@ char *str_init_seq_done = "\n\rInit sequence done...\r\n\r\n"; void board_init_f(ulong bootflag) { - cmd_tbl_t *cmdtp; bd_t *bd; unsigned char *s; init_fnc_t **init_fnc_ptr; int j; - int i; - char *e; #ifndef CONFIG_SYS_NO_FLASH ulong flash_size; diff --git a/arch/sparc/lib/bootm.c b/arch/sparc/lib/bootm.c index 4c226a3a75..e5b933d1d6 100644 --- a/arch/sparc/lib/bootm.c +++ b/arch/sparc/lib/bootm.c @@ -97,8 +97,6 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t * im char *bootargs; ulong initrd_start, initrd_end; ulong rd_len; - unsigned int data, len, checksum; - unsigned int initrd_addr, kernend; void (*kernel) (struct linux_romvec *, void *); struct lmb *lmb = &images->lmb; int ret; |