fit_payload: Always set DT size
CB:32870 changed FIT loading code to make an FDT mandatory (because the platforms that can use FIT images always need an FDT). Remove one left-over conditional that is now dead code. Found by Coverity. Change-Id: Ia7765d45f068ab4bdc720ea7ae87dcc62a4b7d3d Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34224 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
8a77454e33
commit
f6410baaab
|
@ -228,7 +228,7 @@ void fit_payload(struct prog *payload)
|
|||
|
||||
/* Collect infos for fit_payload_arch */
|
||||
kernel.size = config->kernel->size;
|
||||
fdt.size = dt ? dt_flat_size(dt) : 0;
|
||||
fdt.size = dt_flat_size(dt);
|
||||
initrd.size = config->ramdisk ? config->ramdisk->size : 0;
|
||||
|
||||
/* Invoke arch specific payload placement and fixups */
|
||||
|
|
Loading…
Reference in New Issue