diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-07-07 11:32:15 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-09 11:51:05 -0700 |
commit | 0d3de9b01419ff1f2c776b2683586c2f269d3607 (patch) | |
tree | 45a307b30cffba5bfbc11e7d7537b7a88fb5734e | |
parent | 9a671f886f156e67d984057074c6241621961a21 (diff) | |
download | linux-0d3de9b01419ff1f2c776b2683586c2f269d3607.tar.gz linux-0d3de9b01419ff1f2c776b2683586c2f269d3607.tar.bz2 linux-0d3de9b01419ff1f2c776b2683586c2f269d3607.zip |
staging/rts_pstor: fix the no brace needed warning
for if else statements having single block no braces are needed
fixed the following checkpatch warning
drivers/staging/rts_pstor/sd.c:140: WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rts_pstor/sd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/staging/rts_pstor/sd.c index b9474a8aefc0..ff9bf0fa17d1 100644 --- a/drivers/staging/rts_pstor/sd.c +++ b/drivers/staging/rts_pstor/sd.c @@ -137,11 +137,10 @@ static int sd_check_data0_status(struct rtsx_chip *chip) { u8 stat; - if (CHECK_PID(chip, 0x5209)) { + if (CHECK_PID(chip, 0x5209)) RTSX_READ_REG(chip, REG_SD_BUS_STAT, &stat); - } else { + else RTSX_READ_REG(chip, REG_SD_STAT1, &stat); - } if (!(stat & SD_DAT0_STATUS)) { sd_set_err_code(chip, SD_BUSY); |