tty: serial: amba-pl011: unindent pl011_console_get_options function body
authorThéo Lebrun <theo.lebrun@bootlin.com>
Thu, 7 Dec 2023 17:56:12 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 13:24:12 +0000 (14:24 +0100)
commit8ff87406c29b43fa0d807ce80601c94821cab9bc
tree0005e04d32b2424fd2a04ed11c0c330b6cf05f45
parent826bd77ae5e8fec91a5fddb189adbdbaef3050ef
tty: serial: amba-pl011: unindent pl011_console_get_options function body

The whole function body is encapsulated inside an if-condition. Reverse
the if logic and early return to remove one indentation level.

Also turn two nested ifs into a single one at the end of the function.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20231207-mbly-uart-v6-7-e384afa5e78c@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c