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

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

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
participants (2)
-
Anatolij Gustschin
-
Heinrich Schuchardt