summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorMartin Townsend <mtownsend1973@gmail.com>2017-10-20 22:17:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-23 11:22:58 +0200
commite60f9fd03b8b5323a8569abc23c62396e0dfa9ad (patch)
tree92eaf9211f552b4c90678a6e65b2de64fdc9ce9f /drivers/tty
parente361d1f85855ded967bd4803e8293445a6ce301a (diff)
downloadop-kernel-dev-e60f9fd03b8b5323a8569abc23c62396e0dfa9ad.zip
op-kernel-dev-e60f9fd03b8b5323a8569abc23c62396e0dfa9ad.tar.gz
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 580f567..7b183fc 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);
OpenPOWER on IntegriCloud