mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 11:31:32 +00:00
[new uImage] Fix erroneous use of image_get_magic() in fdc/usb cmds
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
This commit is contained in:
parent
2242f53698
commit
5583cbf736
2 changed files with 2 additions and 2 deletions
|
@ -836,7 +836,7 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
hdr = (image_header_t *)addr;
|
hdr = (image_header_t *)addr;
|
||||||
if (!image_get_magic (hdr)) {
|
if (!image_check_magic (hdr)) {
|
||||||
printf ("Bad Magic Number\n");
|
printf ("Bad Magic Number\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
|
|
||||||
hdr = (image_header_t *)addr;
|
hdr = (image_header_t *)addr;
|
||||||
|
|
||||||
if (!image_get_magic (hdr)) {
|
if (!image_check_magic (hdr)) {
|
||||||
printf("\n** Bad Magic Number **\n");
|
printf("\n** Bad Magic Number **\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue