mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
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>
This commit is contained in:
parent
9ee9cf31ae
commit
80281829a6
1 changed files with 2 additions and 6 deletions
|
@ -279,7 +279,6 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
|
||||||
int fdt_noffset;
|
int fdt_noffset;
|
||||||
#endif
|
#endif
|
||||||
const char *select = NULL;
|
const char *select = NULL;
|
||||||
int ok_no_fdt = 0;
|
|
||||||
|
|
||||||
*of_flat_tree = NULL;
|
*of_flat_tree = NULL;
|
||||||
*of_size = 0;
|
*of_size = 0;
|
||||||
|
@ -487,12 +486,9 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
no_fdt:
|
no_fdt:
|
||||||
ok_no_fdt = 1;
|
debug("Continuing to boot without FDT\n");
|
||||||
|
return 0;
|
||||||
error:
|
error:
|
||||||
if (ok_no_fdt) {
|
|
||||||
debug("Continuing to boot without FDT\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue