tty: serial: amba-pl011: fix formatting of conditions
authorThéo Lebrun <theo.lebrun@bootlin.com>
Thu, 7 Dec 2023 17:56:10 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 13:24:12 +0000 (14:24 +0100)
commit28a7ec8c6679f594b4218090fe2932a647594fe2
tree89a100f72d3d3f287dc20cb690870ee90b9f9ebe
parentfd64ff0966d39422f547d7935b8988e962f9f91e
tty: serial: amba-pl011: fix formatting of conditions

Fix the following checkpatch warnings & checks:

$ ./scripts/checkpatch.pl --strict --file \
        drivers/tty/serial/amba-pl011.c

    CHECK: Unbalanced braces around else statement
    CHECK: Unnecessary parentheses around '[...]'
    CHECK: braces {} should be used on all arms of this statement
    CHECK: Comparison to NULL could be written "[...]"
    WARNING: Comparisons should place the constant on the right side of the test

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