aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt2018-03-18 14:24:39 +0100
committerAnatolij Gustschin2018-03-19 09:35:57 +0100
commit41ec127016f39c9cec269ff3905ea5de1b09d0b0 (patch)
treecea2c5f690c1b86d66252ef6bbc25566ca706c87
parentb8aa55cb6414e512cce30bb7db3268eea934466d (diff)
video: cfb_console: simplify logical constraint
(A || !A && B) == (A || B) Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--drivers/video/cfb_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index 0b258970620..5b7795dd44d 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;