serial: stm32: correct loop for dma error handling
authorValentin Caron <valentin.caron@foss.st.com>
Tue, 4 Jan 2022 18:24:45 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jan 2022 14:58:46 +0000 (15:58 +0100)
commit195437d14fb424a2ee50d51441181f16fd549789
treedd46cbd3456df381cb673a6d9e9f45ab7605c61d
parent2a3bcfe03725472607110507b6860d823e0deb41
serial: stm32: correct loop for dma error handling

In this error handling, "transmit_chars_dma" function will call
"transmit_chars_pio" once per characters. But "transmit_chars_pio" will
continue to send characters while xmit buffer is not empty.

Remove this useless loop, one call is sufficient.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20220104182445.4195-5-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c