[PATCH 1/3] drivers/fbtft: Remove newline after else in else-if

From: Luis Gerhorst
Date: Mon Jan 08 2018 - 05:13:21 EST


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@xxxxxxxxxxxxxxx>
Acked-by: Jonny Schaefer <schaefer.jonny@xxxxxxxxx>
Acked-by: Alexander Wuerstlein <arw@xxxxxxxxx>
---
drivers/staging/fbtft/fbtft-core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index 6d0363d..66b46b2 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -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;
--
2.7.4