]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35c501c19176721f21359813c64980952ee6a38e
tree40fe46056a49975d06095526b2cb8210f90d4ae1
parent3fa50d32dc014a50f3621c293f1ecb2d8583cd71
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