[PATCH 2/3] fixup! commands: implement rksecure command

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jan 7 04:57:58 PST 2026


commands: rksecure: fix bogus early exit

Due to missing braces, return ret was always executed.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 commands/rksecure.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/commands/rksecure.c b/commands/rksecure.c
index e9b7e204c1bd..e0c20f75fcec 100644
--- a/commands/rksecure.c
+++ b/commands/rksecure.c
@@ -59,9 +59,10 @@ static int rksecure_print_info(void)
 	int ret;
 
 	ret = rk_secure_boot_get_info(&info);
-	if (ret)
+	if (ret) {
 		pr_err("Failed to read secure boot info\n");
 		return ret;
+	}
 
 	printf("Public Root Key hash: %*phN\n"
 	       "Secure boot: %s\n"
-- 
2.47.3




More information about the barebox mailing list