]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_port: do not use goto for UPQ_NO_TXEN_TEST code flow
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 17 Mar 2025 07:00:44 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:00:52 +0000 (08:00 -0700)
commitdc7d36668f40b4ba98da4197b68002c347e24d76
tree9adb9e83e0bcfc80e3c7cd69be9e3c5ce8520fd1
parent6b879bc9032b1178d8720494e9daa964bea211a9
serial: 8250_port: do not use goto for UPQ_NO_TXEN_TEST code flow

This is unnecessary here and makes the code harder to follow. Invert the
condition and drop the goto+label.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250317070046.24386-30-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c