From: Sergey Organov Date: Wed, 1 Feb 2023 14:26:58 +0000 (+0300) Subject: serial: imx: remove redundant USR2 read from FIFO reading loop X-Git-Tag: v6.3-rc1~109^2~10 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0fbca4798af88c20a2b9e4c98ac762408a24b668;p=linux-block.git 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 Link: https://lore.kernel.org/r/20230201142700.4346-6-sorganov@gmail.com Signed-off-by: Greg Kroah-Hartman --- 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))