]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esd/common/auto_update.c
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx
[karo-tx-uboot.git] / board / esd / common / auto_update.c
index c4a49e2f1828cf224914e0536806ba68dd1d1913..fc60545d048b249febd17993929c17192d191193 100644 (file)
@@ -91,7 +91,6 @@ int au_check_cksum_valid(int i, long nbytes)
 int au_check_header_valid(int i, long nbytes)
 {
        image_header_t *hdr;
-       unsigned long checksum;
 
        hdr = (image_header_t *)LOAD_ADDR;
 #if defined(CONFIG_FIT)
@@ -127,9 +126,6 @@ int au_check_header_valid(int i, long nbytes)
                return -1;
        }
 
-       /* recycle checksum */
-       checksum = image_get_data_size (hdr);
-
        return 0;
 }
 
@@ -397,7 +393,7 @@ int do_auto_update(void)
 {
        block_dev_desc_t *stor_dev = NULL;
        long sz;
-       int i, res, cnt, old_ctrlc, got_ctrlc;
+       int i, res, cnt, old_ctrlc;
        char buffer[32];
        char str[80];
        int n;
@@ -473,8 +469,6 @@ int do_auto_update(void)
                        /* let the user break out of the loop */
                        if (ctrlc() || had_ctrlc ()) {
                                clear_ctrlc ();
-                               if (res < 0)
-                                       got_ctrlc = 1;
                                break;
                        }
                        cnt++;
@@ -492,7 +486,7 @@ int do_auto_update(void)
        return 0;
 }
 
-int auto_update(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int auto_update(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        do_auto_update();