From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH] ARM: cpu: dtb: Drop unnecessary check
Date: Wed, 4 Dec 2024 08:13:12 +0300 [thread overview]
Message-ID: <20241204051312.433022-1-eagle.alexander923@gmail.com> (raw)
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
next reply other threads:[~2024-12-04 5:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 5:13 Alexander Shiyan [this message]
2024-12-06 10:02 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241204051312.433022-1-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox