Commit a39d1da1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

serial: 8250_core: remove redundant else keyword

Since we return in the first branch the second one doesn't require an
additional else keyword. The patch removes it.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb876341
...@@ -1376,9 +1376,11 @@ static void serial8250_start_tx(struct uart_port *port) ...@@ -1376,9 +1376,11 @@ static void serial8250_start_tx(struct uart_port *port)
struct uart_8250_port *up = up_to_u8250p(port); struct uart_8250_port *up = up_to_u8250p(port);
serial8250_rpm_get_tx(up); serial8250_rpm_get_tx(up);
if (up->dma && !up->dma->tx_dma(up)) {
if (up->dma && !up->dma->tx_dma(up))
return; return;
} else if (!(up->ier & UART_IER_THRI)) {
if (!(up->ier & UART_IER_THRI)) {
up->ier |= UART_IER_THRI; up->ier |= UART_IER_THRI;
serial_port_out(port, UART_IER, up->ier); serial_port_out(port, UART_IER, up->ier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment