]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/rts_pstor: fix the no brace needed warning
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 06:02:15 +0000 (11:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 18:51:05 +0000 (11:51 -0700)
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>
drivers/staging/rts_pstor/sd.c

index b9474a8aefc0ecc659d0c081e54edbf8f027e4cc..ff9bf0fa17d180e362cf80de391cfb3af713eaba 100644 (file)
@@ -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);