diff options
author | Sankalp Negi <sankalpnegi2310@gmail.com> | 2018-06-03 00:07:31 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-17 09:05:12 +0200 |
commit | 9c562d8411a54f6731cdc587c29968d9e8610c85 (patch) | |
tree | 225d25c19f846a1b05646df309e3ca98ade732fb /drivers/staging/mt7621-spi | |
parent | 6e89217cdb28809a039dad9c5cb321d408ca2473 (diff) | |
download | blackbird-op-linux-9c562d8411a54f6731cdc587c29968d9e8610c85.tar.gz blackbird-op-linux-9c562d8411a54f6731cdc587c29968d9e8610c85.zip |
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 <sankalpnegi2310@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-spi')
-rw-r--r-- | drivers/staging/mt7621-spi/spi-mt7621.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |