summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorMartin Townsend <mtownsend1973@gmail.com>2017-10-21 00:17:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-23 12:22:58 +0300
commite60f9fd03b8b5323a8569abc23c62396e0dfa9ad (patch)
tree92eaf9211f552b4c90678a6e65b2de64fdc9ce9f /drivers/tty
parente361d1f85855ded967bd4803e8293445a6ce301a (diff)
downloadlinux-e60f9fd03b8b5323a8569abc23c62396e0dfa9ad.tar.xz
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>
Diffstat (limited to 'drivers/tty')
-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);