Skip to content

Commit

Permalink
staging/rts_pstor: fix the no brace needed warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 9a671f8 commit 0d3de9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d3de9b

Please sign in to comment.