staging: KPC2000: kpc2000_spi.c: Fix style issues (misaligned brace)
authorChandra Annamaneni <chandra627@gmail.com>
Tue, 29 Oct 2019 09:16:36 +0000 (02:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2019 09:38:49 +0000 (10:38 +0100)
Resolved: ERROR: else should follow close brace '}'

Signed-off-by: Chandra Annamaneni <chandra627@gmail.com>
Link: https://lore.kernel.org/r/20191029091638.16101-2-chandra627@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c

index 5712a88c87883abb53fbf497d78dbb5e9676622b..929136cdc3e1e06580a8eee4a570aa8e3604db6d 100644 (file)
@@ -226,8 +226,7 @@ kp_spi_txrx_pio(struct spi_device *spidev, struct spi_transfer *transfer)
                        kp_spi_write_reg(cs, KP_SPI_REG_TXDATA, val);
                        processed++;
                }
-       }
-       else if (rx) {
+       } else if (rx) {
                for (i = 0 ; i < c ; i++) {
                        char test = 0;