]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_port: simplify serial8250_request_std_resource()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 17 Mar 2025 07:00:45 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:00:52 +0000 (08:00 -0700)
commit2667bd6673eb49c9c299c1202bab5a3fc04586de
tree0a64b65d41a22ce5326f325dcbc82e7306b78a37
parentdc7d36668f40b4ba98da4197b68002c347e24d76
serial: 8250_port: simplify serial8250_request_std_resource()

Return immediately from the error locations or switch-case ends. It is
therefore easier to see the flow.

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