staging: mt7621-spi: Remove unnecessary braces {} from single statement if block.
authorSankalp Negi <sankalpnegi2310@gmail.com>
Sat, 2 Jun 2018 18:37:31 +0000 (00:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:12 +0000 (09:05 +0200)
The patch fixes following checkpatch.pl issue:
WARNING : braces {} are not necessary for single statement blocks

Signed-off-by: Sankalp Negi <sankalpnegi2310@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-spi/spi-mt7621.c

index e8cccb8..d045b55 100644 (file)
@@ -166,9 +166,8 @@ static inline int mt7621_spi_wait_till_ready(struct mt7621_spi *rs)
                u32 status;
 
                status = mt7621_spi_read(rs, MT7621_SPI_TRANS);
-               if ((status & SPITRANS_BUSY) == 0) {
+               if ((status & SPITRANS_BUSY) == 0)
                        return 0;
-               }
                cpu_relax();
                udelay(1);
        }