drivers/fbtft: Remove newline after else in else-if
authorLuis Gerhorst <linux-kernel@luisgerhorst.de>
Mon, 8 Jan 2018 10:02:47 +0000 (11:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:45 +0000 (16:03 +0100)
This removes the following warning issued by checkpatch

WARNING: suspect code indent for conditional statements (8, 8)
+ } else
+ if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {

Signed-off-by: Luis Gerhorst <linux-kernel@luisgerhorst.de>
Acked-by: Jonny Schaefer <schaefer.jonny@gmail.com>
Acked-by: Alexander Wuerstlein <arw@cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c

index 6d0363deba6193528342bf3306a84e83979b6c24..66b46b2c247ea689a3761f61b32bf54197bf7bf4 100644 (file)
@@ -1369,8 +1369,7 @@ int fbtft_probe_common(struct fbtft_display *display,
        /* write register functions */
        if (display->regwidth == 8 && display->buswidth == 8) {
                par->fbtftops.write_register = fbtft_write_reg8_bus8;
-       } else
-       if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
+       } else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
                par->fbtftops.write_register = fbtft_write_reg8_bus9;
        } else if (display->regwidth == 16 && display->buswidth == 8) {
                par->fbtftops.write_register = fbtft_write_reg16_bus8;