serial: xilinx_uartps: cache xmit in cdns_uart_handle_tx()
authorJiri Slaby <jslaby@suse.cz>
Thu, 21 Apr 2022 10:17:04 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:21:53 +0000 (16:21 +0200)
commit08814cd69d4eace3612aaa386dffa5ebb8d1e1a4
tree40fe46056a49975d06095526b2cb8210f90d4ae1
parenta28ef75816fcce29b72704143347a9f7700637be
serial: xilinx_uartps: cache xmit in cdns_uart_handle_tx()

Cache port->state->xmit into a local variable (xmit) in
cdns_uart_handle_tx(). This reduces length of some lines there
significantly. I.e. makes the code more readable.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220421101708.5640-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c