mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
fdt: Drop OF_CONTROL check in fdtdec_setup()
This function should only be called when OF_CONTROL is enabled. It fails in fdtdec_prepare_fdt() anyway, since gd->fdt_blob stays as NULL if OF_CONTROL is not enabled. Drop this useless check. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
931511d089
commit
b5199380fc
@ -1624,7 +1624,6 @@ static void setup_multi_dtb_fit(void)
|
||||
int fdtdec_setup(void)
|
||||
{
|
||||
int ret;
|
||||
#if CONFIG_IS_ENABLED(OF_CONTROL)
|
||||
#ifdef CONFIG_OF_EMBED
|
||||
/* Get a pointer to the FDT */
|
||||
gd->fdt_blob = dtb_dt_embedded();
|
||||
@ -1642,7 +1641,6 @@ int fdtdec_setup(void)
|
||||
|
||||
if (CONFIG_IS_ENABLED(MULTI_DTB_FIT))
|
||||
setup_multi_dtb_fit();
|
||||
#endif
|
||||
|
||||
ret = fdtdec_prepare_fdt();
|
||||
if (!ret)
|
||||
|
Loading…
x
Reference in New Issue
Block a user