mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: cpu: dtb: Drop unnecessary check
@ 2024-12-04  5:13 Alexander Shiyan
  2024-12-06 10:02 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2024-12-04  5:13 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Shiyan

Signed-off-by: Alexander Shiyan <eagle.alexander923@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-06 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-04  5:13 [PATCH] ARM: cpu: dtb: Drop unnecessary check Alexander Shiyan
2024-12-06 10:02 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox