summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorSergey Organov <sorganov@gmail.com>2023-02-01 17:26:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 13:12:02 +0100
commit0fbca4798af88c20a2b9e4c98ac762408a24b668 (patch)
tree518d17b9115e9a52e6ae06878adaf094f879ba49 /drivers/tty/serial/imx.c
parentfbf971701d03ede858f5ca8b8b8e328671ab04f4 (diff)
serial: imx: remove redundant USR2 read from FIFO reading loop
There is no need to read USR2 twice at every loop iteration: get rid of the second read. Signed-off-by: Sergey Organov <sorganov@gmail.com> Link: https://lore.kernel.org/r/20230201142700.4346-6-sorganov@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index ef0b9d353617..c578cdc6d8da 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -906,7 +906,6 @@ static irqreturn_t __imx_uart_rxint(int irq, void *dev_id)
rx = imx_uart_readl(sport, URXD0);
- usr2 = imx_uart_readl(sport, USR2);
if (usr2 & USR2_BRCD) {
imx_uart_writel(sport, USR2_BRCD, USR2);
if (uart_handle_break(&sport->port))