aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniu Rosca2019-04-01 12:45:35 +0200
committerSimon Glass2019-04-23 20:26:43 -0600
commit80281829a6ac9d5040e710f42ab48604af07d53b (patch)
tree81855e7b7b03d17b1d3083a169cb55e5eeb5868c
parent9ee9cf31aec84332d8f4283cd7e0f3daef36138a (diff)
fdt: boot_get_fdt: simplify no_fdt handling (non-functional)
Increase the readability of boot_get_fdt(). No change in behavior is expected. Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/image-fdt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c
index c335e7e2f22..68bcab85baf 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -279,7 +279,6 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
int fdt_noffset;
#endif
const char *select = NULL;
- int ok_no_fdt = 0;
*of_flat_tree = NULL;
*of_size = 0;
@@ -487,12 +486,9 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
return 0;
no_fdt:
- ok_no_fdt = 1;
+ debug("Continuing to boot without FDT\n");
+ return 0;
error:
- if (ok_no_fdt) {
- debug("Continuing to boot without FDT\n");
- return 0;
- }
return 1;
}