mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
bootm: optee: Drop special call to bootm_find_other()
The normal bootm flow calls bootm_find_other() can call the BOOTM_STATE_FINDOTHER state as part of its processing. Fix the condition there so that this hack can be removed. Also drop the confusing check for the OS type, since do_bootm_tee() is only called if the condition is met - see bootm_os_get_boot_func() Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
e2fc90e5ad
commit
b020254d71
2 changed files with 1 additions and 11 deletions
|
@ -460,11 +460,6 @@ static int do_bootm_tee(int flag, int argc, char *const argv[],
|
|||
{
|
||||
int ret;
|
||||
|
||||
/* Verify OS type */
|
||||
if (images->os.os != IH_OS_TEE) {
|
||||
return 1;
|
||||
};
|
||||
|
||||
/* Validate OPTEE header */
|
||||
ret = optee_verify_bootm_image(images->os.image_start,
|
||||
images->os.load,
|
||||
|
@ -472,11 +467,6 @@ static int do_bootm_tee(int flag, int argc, char *const argv[],
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* Locate FDT etc */
|
||||
ret = bootm_find_images(flag, argc, argv, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* From here we can run the regular linux boot path */
|
||||
return do_bootm_linux(flag, argc, argv, images);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue