Skip to content

Commit

Permalink
staging/rts_pstor: remove braces {} in sd.c (sd_stop_seq_mode)
Browse files Browse the repository at this point in the history
fixed below checkpatch warnings.
-WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 629ec90 commit 3712cbd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3127,19 +3127,18 @@ void sd_stop_seq_mode(struct rtsx_chip *chip)

if (sd_card->seq_mode) {
retval = sd_switch_clock(chip);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
return;
}

retval = sd_send_cmd_get_rsp(chip, STOP_TRANSMISSION, 0,
SD_RSP_TYPE_R1b, NULL, 0);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
sd_set_err_code(chip, SD_STS_ERR);
}

retval = sd_wait_state_data_ready(chip, 0x08, 1, 1000);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
sd_set_err_code(chip, SD_STS_ERR);
}

sd_card->seq_mode = 0;

rtsx_write_register(chip, RBCTL, RB_FLUSH, RB_FLUSH);
Expand Down

0 comments on commit 3712cbd

Please sign in to comment.