serial: 8250: Unfold < 80 char lines
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 22:39:36 +0000 (14:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 22:07:04 +0000 (14:07 -0800)
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c

index 57b3a80b4359a7ab2118f9490b404e8fff1c10d5..0bd3c6baa3008f0b82ca24d22efa72e852f097a5 100644 (file)
@@ -1523,11 +1523,9 @@ void serial8250_tx_chars(struct uart_8250_port *up)
                port->icount.tx++;
                if (uart_circ_empty(xmit))
                        break;
-               if (up->capabilities & UART_CAP_HFIFO) {
-                       if ((serial_port_in(port, UART_LSR) & BOTH_EMPTY) !=
-                           BOTH_EMPTY)
-                               break;
-               }
+               if ((up->capabilities & UART_CAP_HFIFO) &&
+                   (serial_in(up, UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)
+                       break;
        } while (--count > 0);
 
        if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
@@ -2753,8 +2751,7 @@ serial8250_verify_port(struct uart_port *port, struct serial_struct *ser)
        return 0;
 }
 
-static const char *
-serial8250_type(struct uart_port *port)
+static const char *serial8250_type(struct uart_port *port)
 {
        int type = port->type;