Revert "spl: fit: check image length"
This reverts commit 359ed52cc2.
This early return causes variable "image_info" not initialized.
spl_load_fit_image() should return 0 only at the end.
Change-Id: I7dba24826758763e6e4da56579546cb50b9cb984
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
78cac1dffd
commit
35176ccb87
|
|
@ -204,9 +204,6 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
|||
if (fit_image_get_data_size(fit, node, &len))
|
||||
return -ENOENT;
|
||||
|
||||
if (!len)
|
||||
return 0;
|
||||
|
||||
load_ptr = (load_addr + align_len) & ~align_len;
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP)
|
||||
if ((load_ptr < CONFIG_SYS_SDRAM_BASE) ||
|
||||
|
|
@ -235,9 +232,6 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
|||
debug("Embedded data: dst=%lx, size=%lx\n", load_addr,
|
||||
(unsigned long)length);
|
||||
src = (void *)data;
|
||||
|
||||
if (!length)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Check hashes and signature */
|
||||
|
|
|
|||
Loading…
Reference in New Issue