Messages in this thread Patch in this message | | | From | Sankalp Negi <> | Subject | [PATCH v2 5/5] staging: mt7621-spi: Fix Coding style issues reported by checkpatch.pl. | Date | Sat, 2 Jun 2018 19:56:05 +0530 |
| |
The patch fixes following checkpatch.pl issue: WARNING : braces {} are not necessary for single statement blocks
Signed-off-by: Sankalp Negi <sankalpnegi2310@gmail.com> --- drivers/staging/mt7621-spi/spi-mt7621.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index 472f72479162..cf5b5d7c3cf9 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -165,9 +165,8 @@ static inline int mt7621_spi_wait_till_ready(struct spi_device *spi) 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); } -- 2.11.0
| |