]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: altera: use altera_jtaguart_stop_tx()
authorJiri Slaby <jslaby@suse.cz>
Mon, 11 Apr 2022 10:45:06 +0000 (12:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Apr 2022 16:27:18 +0000 (18:27 +0200)
commit6a7df9e56c9b55107d6c846af5ce5c808d183db5
tree5f02801134154b1b5c0fc14e3f5ed91cf89b9283
parentd9feb018a4272a56709ff9f5306d10df80dbf989
tty: serial: altera: use altera_jtaguart_stop_tx()

altera_jtaguart_tx_chars() duplicates what altera_jtaguart_stop_tx()
already does. So instead of the duplication, call the helper instead.

Not only it makes the code cleaner, but it also says what the "if"
really does.

Cc: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220411104506.8990-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_jtaguart.c