diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2022-04-26 09:10:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-26 13:24:17 +0200 |
commit | f0426b4e3b6940c6108c47ef5268c9e3ce89cb55 (patch) | |
tree | 751f4cde2c81dbe87e7f380cf9a90b2c61de64ae /drivers/tty/hvc/hvc_opal.c | |
parent | serial: stm32: add earlycon support (diff) | |
download | linux-f0426b4e3b6940c6108c47ef5268c9e3ce89cb55.tar.xz linux-f0426b4e3b6940c6108c47ef5268c9e3ce89cb55.zip |
tty/hvc_opal: simplify if-if to if-else
Use if and else instead of if(A) and if (!A).
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20220426071041.168282-1-wanjiabing@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc/hvc_opal.c')
-rw-r--r-- | drivers/tty/hvc/hvc_opal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c index 84776bc641e6..794c7b18aa06 100644 --- a/drivers/tty/hvc/hvc_opal.c +++ b/drivers/tty/hvc/hvc_opal.c @@ -342,9 +342,9 @@ void __init hvc_opal_init_early(void) * path, so we hard wire it */ opal = of_find_node_by_path("/ibm,opal/consoles"); - if (opal) + if (opal) { pr_devel("hvc_opal: Found consoles in new location\n"); - if (!opal) { + } else { opal = of_find_node_by_path("/ibm,opal"); if (opal) pr_devel("hvc_opal: " |