serial: 8250_dw: remove redundant 'else' keyword
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Feb 2016 15:38:45 +0000 (17:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
When the main branch contains return statement the 'else' keyword is not
needed. Remove it here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c

index 30810acf7f962de935e5432f436a7dad4500e446..d190d69532819e220b21cb05c59fd2d9ca9d41ad 100644 (file)
@@ -207,9 +207,10 @@ static int dw8250_handle_irq(struct uart_port *p)
        struct dw8250_data *d = p->private_data;
        unsigned int iir = p->serial_in(p, UART_IIR);
 
-       if (serial8250_handle_irq(p, iir)) {
+       if (serial8250_handle_irq(p, iir))
                return 1;
-       } else if ((iir & UART_IIR_BUSY) == UART_IIR_BUSY) {
+
+       if ((iir & UART_IIR_BUSY) == UART_IIR_BUSY) {
                /* Clear the USR */
                (void)p->serial_in(p, d->usr_reg);