From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 13:24:39 +0000 (+0100) Subject: video: cfb_console: simplify logical constraint X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=41ec127016f39c9cec269ff3905ea5de1b09d0b0;p=u-boot.git video: cfb_console: simplify logical constraint (A || !A && B) == (A || B) Signed-off-by: Heinrich Schuchardt --- diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 0b25897062..5b7795dd44 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -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;