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:
Julius Werner 2019-07-10 13:16:40 -07:00 committed by Martin Roth
parent 8a77454e33
commit f6410baaab
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void fit_payload(struct prog *payload)
/* Collect infos for fit_payload_arch */ /* Collect infos for fit_payload_arch */
kernel.size = config->kernel->size; 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; initrd.size = config->ramdisk ? config->ramdisk->size : 0;
/* Invoke arch specific payload placement and fixups */ /* Invoke arch specific payload placement and fixups */