commands: rksecure: fix bogus early exit

Due to missing braces, return ret was always executed.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 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


Reply via email to