staging/fbtft: Fix braces coding style
authorLen Baker <len.baker@gmx.com>
Sun, 1 Aug 2021 08:51:55 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 11:05:57 +0000 (13:05 +0200)
Add braces to the "for" loop. This way, the kernel coding style is
followed.

Signed-off-by: Len Baker <len.baker@gmx.com>
Link: https://lore.kernel.org/r/20210801085155.3170-4-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c

index ed896049118c634bfc49a31ec57b7cf283956f06..ed992ca605ebe2c78552488d1786059603c8f34f 100644 (file)
@@ -1003,9 +1003,11 @@ int fbtft_init_display(struct fbtft_par *par)
        }
 
        /* make sure stop marker exists */
-       for (i = 0; i < FBTFT_MAX_INIT_SEQUENCE; i++)
+       for (i = 0; i < FBTFT_MAX_INIT_SEQUENCE; i++) {
                if (par->init_sequence[i] == -3)
                        break;
+       }
+
        if (i == FBTFT_MAX_INIT_SEQUENCE) {
                dev_err(par->info->device,
                        "missing stop marker at end of init sequence\n");