* [U-Boot] [PATCH 1/1] video: cfb_console: simplify logical constraint
@ 2018-03-18 13:24 Heinrich Schuchardt
2018-03-19 9:16 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2018-03-18 13:24 UTC (permalink / raw)
To: u-boot
(A || !A && B) == (A || B)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
drivers/video/cfb_console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-19 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-18 13:24 [U-Boot] [PATCH 1/1] video: cfb_console: simplify logical constraint Heinrich Schuchardt
2018-03-19 9:16 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox