tty: serial: move and cleanup vt8500_tx_empty()
authorJiri Slaby <jslaby@suse.cz>
Tue, 20 Sep 2022 05:20:41 +0000 (07:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:14:07 +0000 (16:14 +0200)
commit0c0bfc6b14388356ce6016b9d548ac8b874013e0
treef4a1873a63c5b7f08bef78846101825efb755a60
parenteef7381d8134f249dc17138bb1794c249aff7f5a
tty: serial: move and cleanup vt8500_tx_empty()

Make vt8500_tx_empty() more readable by introducing a new local variable
and move the function before handle_tx(). That way we can reuse it in
there too.

Cc: <linux-arm-kernel@lists.infradead.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220920052049.20507-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/vt8500_serial.c