diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index a954051f7e..48667efcb5 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1167,7 +1167,7 @@ int fdtdec_setup(void)
 #  else
 	/* FDT is at end of image */
 	gd->fdt_blob = (ulong *)&_end;
-#endif
+#  endif
 # elif defined(CONFIG_OF_HOSTFILE)
 	if (sandbox_read_fdt_from_file()) {
 		puts("Failed to read control FDT\n");