projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8aa55c
)
video: cfb_console: simplify logical constraint
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 18 Mar 2018 13:24:39 +0000
(14:24 +0100)
committer
Anatolij 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
patch
|
blob
|
history
diff --git
a/drivers/video/cfb_console.c
b/drivers/video/cfb_console.c
index 0b2589706201ccfd525437e24967f5a612b07e5f..5b7795dd44d81b5ef60ac81d7adc4dbfde430591 100644
(file)
--- 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;