diff options
| author | 2023-12-07 18:56:12 +0100 | |
|---|---|---|
| committer | 2023-12-15 14:24:12 +0100 | |
| commit | 8ff87406c29b43fa0d807ce80601c94821cab9bc (patch) | |
| tree | 0005e04d32b2424fd2a04ed11c0c330b6cf05f45 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | tty: serial: amba-pl011: fix miscellaneous checkpatch warnings (diff) | |
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>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
