[PATCH] ARM: cpu: dtb: Drop unnecessary check
Alexander Shiyan
eagle.alexander923 at gmail.com
Tue Dec 3 21:13:12 PST 2024
Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
arch/arm/cpu/dtb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/cpu/dtb.c b/arch/arm/cpu/dtb.c
index 9aa979ca08..e84d317661 100644
--- a/arch/arm/cpu/dtb.c
+++ b/arch/arm/cpu/dtb.c
@@ -18,14 +18,13 @@ static int of_arm_init(void)
/* See if we are provided a dtb in boarddata */
fdt = barebox_arm_boot_dtb();
- if (fdt)
- pr_debug("using boarddata provided DTB\n");
-
if (!fdt) {
pr_debug("No DTB found\n");
return 0;
}
+ pr_debug("using boarddata provided DTB\n");
+
return barebox_register_fdt(fdt);
}
core_initcall(of_arm_init);
--
2.38.2
More information about the barebox
mailing list