Commit 9c562d84 authored by Sankalp Negi's avatar Sankalp Negi Committed by Greg Kroah-Hartman

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: default avatarSankalp Negi <sankalpnegi2310@gmail.com>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e89217c
...@@ -166,9 +166,8 @@ static inline int mt7621_spi_wait_till_ready(struct mt7621_spi *rs) ...@@ -166,9 +166,8 @@ static inline int mt7621_spi_wait_till_ready(struct mt7621_spi *rs)
u32 status; u32 status;
status = mt7621_spi_read(rs, MT7621_SPI_TRANS); status = mt7621_spi_read(rs, MT7621_SPI_TRANS);
if ((status & SPITRANS_BUSY) == 0) { if ((status & SPITRANS_BUSY) == 0)
return 0; return 0;
}
cpu_relax(); cpu_relax();
udelay(1); udelay(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment