]> git.sur5r.net Git - u-boot/commitdiff
[new uImage] Fix erroneous use of image_get_magic() in fdc/usb cmds
authorMarian Balakowicz <m8@semihalf.com>
Thu, 21 Feb 2008 16:27:49 +0000 (17:27 +0100)
committerMarian Balakowicz <m8@semihalf.com>
Thu, 21 Feb 2008 16:27:49 +0000 (17:27 +0100)
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
common/cmd_fdc.c
common/cmd_usb.c

index c97abfb58ec7a23cb7d136f88498d943cde8d997..9ddc59b7a0d10e4b1518c245f55862938b13cdc4 100644 (file)
@@ -836,7 +836,7 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 1;
        }
        hdr = (image_header_t *)addr;
-       if (!image_get_magic (hdr)) {
+       if (!image_check_magic (hdr)) {
                printf ("Bad Magic Number\n");
                return 1;
        }
index 2d7a85a0848173ec28e418aab92fbbfb8472c3ad..3f1aa7d9fee10354c9fe4e9f54d081760fa104d2 100644 (file)
@@ -388,7 +388,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        hdr = (image_header_t *)addr;
 
-       if (!image_get_magic (hdr)) {
+       if (!image_check_magic (hdr)) {
                printf("\n** Bad Magic Number **\n");
                return 1;
        }