Avoid an #ifdef in this function, to improve readability.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 common/autoboot.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/autoboot.c b/common/autoboot.c
index f832808b71e..45df6656760 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -286,10 +286,8 @@ static int abortboot(int bootdelay)
        if (bootdelay >= 0)
                abort = __abortboot(bootdelay);
 
-#ifdef CONFIG_SILENT_CONSOLE
-       if (abort)
+       if (IS_ENABLED(CONFIG_SILENT_CONSOLE) && abort)
                gd->flags &= ~GD_FLG_SILENT;
-#endif
 
        return abort;
 }
-- 
2.21.0.1020.gf2820cf01a-goog

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to