summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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 */