summaryrefslogtreecommitdiff
path: root/src/lib/fit_payload.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-07-10 13:16:40 -0700
committerMartin Roth <martinroth@google.com>2019-07-13 16:15:16 +0000
commitf6410baaabd4a68a11112c021cecb48b83b131c1 (patch)
tree183074205786448e355863b65d06d327aad285e9 /src/lib/fit_payload.c
parent8a77454e3318e937875512b28f85de3b1808fc7e (diff)
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>
Diffstat (limited to 'src/lib/fit_payload.c')
-rw-r--r--src/lib/fit_payload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fit_payload.c b/src/lib/fit_payload.c
index 8e75915806..a4d370540e 100644
--- a/src/lib/fit_payload.c
+++ b/src/lib/fit_payload.c
@@ -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 */