]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: Style fix
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 2 Sep 2014 21:39:11 +0000 (17:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:21:35 +0000 (16:21 -0700)
Unwrap if() conditional; no functional change.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c

index 2e57d5b6347dfad0e596ea6b73a7682c8939ddaa..0742f77ac4104e98b29e8d9ab9a50cda9054bf97 100644 (file)
@@ -1288,8 +1288,7 @@ static void uart_set_termios(struct tty_struct *tty,
        /* Handle transition away from B0 status */
        else if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) {
                unsigned int mask = TIOCM_DTR;
-               if (!(cflag & CRTSCTS) ||
-                   !test_bit(TTY_THROTTLED, &tty->flags))
+               if (!(cflag & CRTSCTS) || !test_bit(TTY_THROTTLED, &tty->flags))
                        mask |= TIOCM_RTS;
                uart_set_mctrl(uport, mask);
        }