video: cfb_console: simplify logical constraint
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 13:24:39 +0000 (14:24 +0100)
committerAnatolij Gustschin <agust@denx.de>
Mon, 19 Mar 2018 08:35:57 +0000 (09:35 +0100)
(A || !A && B) == (A || B)

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/video/cfb_console.c

index 0b2589706201ccfd525437e24967f5a612b07e5f..5b7795dd44d81b5ef60ac81d7adc4dbfde430591 100644 (file)
@@ -768,7 +768,7 @@ static void parse_putc(const char c)
                break;
 
        case '\n':              /* next line */
-               if (console_col || (!console_col && nl))
+               if (console_col || nl)
                        console_newline(1);
                nl = 1;
                break;