Fix typo in CONFIG_CONSOLE_DISABLE_INPUT case for simple console.

Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de>
---
Sorry, just noticed it when looking again at the diff. Please squash.
---
 common/console_simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/console_simple.c b/common/console_simple.c
index 3b95570e5e76..8c404ad264c4 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -95,7 +95,7 @@ int console_register(struct console_device *newcdev)
        newcdev->f_active = CONSOLE_STDIOE;
 
        if (IS_ENABLED(CONFIG_CONSOLE_DISABLE_INPUT))
-               newcdev->f_active = ~CONSOLE_STDIN;
+               newcdev->f_active &= ~CONSOLE_STDIN;
 
        barebox_banner();
 
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to