sparc: fix unused variable warnings
authorMike Frysinger <vapier@gentoo.org>
Wed, 12 Oct 2011 19:44:10 +0000 (19:44 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 5 Dec 2011 20:55:24 +0000 (21:55 +0100)
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>
arch/sparc/lib/board.c
arch/sparc/lib/bootm.c

index 69b5ca450814a9038fb5ea1876edc5e85fc1d4d9..519a4fbae7b0aaad3b85b4197384bdec603de6d4 100644 (file)
@@ -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;
index 4c226a3a7527d2b962b08008b3eef12a697f6191..e5b933d1d6b0b8fa08b0b879bdd0e0eb6bdf8684 100644 (file)
@@ -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;