diff mbox series

[U-Boot,1/1] video: cfb_console: simplify logical constraint

Message ID 20180318132439.20625-1-xypron.glpk@gmx.de
State Accepted
Commit 41ec127016f39c9cec269ff3905ea5de1b09d0b0
Delegated to: Anatolij Gustschin
Headers show
Series [U-Boot,1/1] video: cfb_console: simplify logical constraint | expand

Commit Message

Heinrich Schuchardt March 18, 2018, 1:24 p.m. UTC
(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(-)

Comments

Anatolij Gustschin March 19, 2018, 9:16 a.m. UTC | #1
On Sun, 18 Mar 2018 14:24:39 +0100
Heinrich Schuchardt xypron.glpk@gmx.de wrote:

> (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(-)

Applied to u-boot-video/master, thanks!

--
Anatolij
diff mbox series

Patch

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;