From d60097b238768b18d6371c390805ec8917b4b7bc Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 10 Nov 2014 01:00:23 +0000 Subject: [PATCH] tty: fix bracketing --- Kernel/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/tty.c b/Kernel/tty.c index bada714d..2f20d825 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -330,7 +330,7 @@ int tty_inproc(uint8_t minor, unsigned char c) /* All modes come here */ if (c == '\n') { - if ((td->c_oflag & OPOST | ONLCR) == OPOST | ONLCR) + if ((td->c_oflag & (OPOST | ONLCR)) == (OPOST | ONLCR)) tty_echo(minor, '\r'); } -- 2.34.1