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>
This commit is contained in:
Sergey Organov 2023-02-01 17:26:58 +03:00 committed by Greg Kroah-Hartman
parent fbf971701d
commit 0fbca4798a

View File

@ -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))