From: Eugeniu Rosca Date: Mon, 1 Apr 2019 10:45:35 +0000 (+0200) Subject: fdt: boot_get_fdt: simplify no_fdt handling (non-functional) X-Git-Tag: v2019.07-rc1~7^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80281829a6ac9d5040e710f42ab48604af07d53b;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/common/image-fdt.c b/common/image-fdt.c index c335e7e..68bcab8 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; }