]> git.baikalelectronics.ru Git - kernel.git/commit
serial: xilinx_uartps: return early in cdns_uart_handle_tx()
authorJiri Slaby <jslaby@suse.cz>
Thu, 21 Apr 2022 10:17:03 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:21:53 +0000 (16:21 +0200)
commit3fa50d32dc014a50f3621c293f1ecb2d8583cd71
tree19d63ec03649ca2adcf111dafbcdca42000c1073
parentc043e1e118c0fadbcd670236af684b9071ae4463
serial: xilinx_uartps: return early in cdns_uart_handle_tx()

Return from the true branch of the 'if'. This saves one indentation
level and makes the code more readable.

The two comments about what obvious code does are removed too.

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