Skip to content

Commit

Permalink
serial: 8250_core: remove redundant else keyword
Browse files Browse the repository at this point in the history
Since we return in the first branch the second one doesn't require an
additional else keyword. The patch removes it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Feb 2, 2015
1 parent cb87634 commit a39d1da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/tty/serial/8250/8250_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,11 @@ static void serial8250_start_tx(struct uart_port *port)
struct uart_8250_port *up = up_to_u8250p(port);

serial8250_rpm_get_tx(up);
if (up->dma && !up->dma->tx_dma(up)) {

if (up->dma && !up->dma->tx_dma(up))
return;
} else if (!(up->ier & UART_IER_THRI)) {

if (!(up->ier & UART_IER_THRI)) {
up->ier |= UART_IER_THRI;
serial_port_out(port, UART_IER, up->ier);

Expand Down

0 comments on commit a39d1da

Please sign in to comment.