memory: mvebu-devbus: Add missing braces to all arms of if statement
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 18:23:14 +0000 (20:23 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 27 Jul 2020 09:13:33 +0000 (11:13 +0200)
Add missing braces to all arms of if statement to align with coding
convention.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/mvebu-devbus.c

index 886aea5..76efc65 100644 (file)
@@ -124,11 +124,11 @@ static int devbus_get_timing_params(struct devbus *devbus,
         * The bus width is encoded into the register as 0 for 8 bits,
         * and 1 for 16 bits, so we do the necessary conversion here.
         */
-       if (r->bus_width == 8)
+       if (r->bus_width == 8) {
                r->bus_width = 0;
-       else if (r->bus_width == 16)
+       } else if (r->bus_width == 16) {
                r->bus_width = 1;
-       else {
+       else {
                dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width);
                return -EINVAL;
        }