From: Sankalp Negi Date: Sat, 2 Jun 2018 18:37:31 +0000 (+0530) Subject: staging: mt7621-spi: Remove unnecessary braces {} from single statement if block. X-Git-Tag: v4.19-rc1~101^2~812 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9c562d8411a54f6731cdc587c29968d9e8610c85;p=tomoyo%2Ftomoyo-test1.git staging: mt7621-spi: Remove unnecessary braces {} from single statement if block. The patch fixes following checkpatch.pl issue: WARNING : braces {} are not necessary for single statement blocks Signed-off-by: Sankalp Negi Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index e8cccb87a13f..d045b5568e0f 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -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); }