summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Townsend <mtownsend1973@gmail.com>2017-10-20 23:17:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-23 11:22:58 +0200
commite60f9fd03b8b5323a8569abc23c62396e0dfa9ad (patch)
tree92eaf9211f552b4c90678a6e65b2de64fdc9ce9f
parentACPI / scan: Fix enumeration for special UART devices (diff)
downloadlinux-e60f9fd03b8b5323a8569abc23c62396e0dfa9ad.tar.xz
linux-e60f9fd03b8b5323a8569abc23c62396e0dfa9ad.zip
omap_serial: Removing superfluous check on no interrupt pending.
The do .. while loop checks for interrupt pending at the start of the loop and exits if there is none, it then checks again for this condition at the end of the loop. Signed-off-by: Martin Townsend <mtownsend1973@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/omap-serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 580f56754699..7b183fc789c8 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -610,7 +610,7 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)
default:
break;
}
- } while (!(iir & UART_IIR_NO_INT) && max_count--);
+ } while (max_count--);
spin_unlock(&up->port.lock);