tty: fix bracketing
authorAlan Cox <alan@etchedpixels.co.uk>
Mon, 10 Nov 2014 01:00:23 +0000 (01:00 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Mon, 10 Nov 2014 01:00:23 +0000 (01:00 +0000)
Kernel/tty.c

index bada714..2f20d82 100644 (file)
@@ -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');
        }