Skip to content

Commit

Permalink
staging/rts_pstor: remove braces {} in sd.c (sd_hw_rst)
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 e0e7625 commit 00e9c10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4452,9 +4452,8 @@ int sd_hw_rst(struct scsi_cmnd *srb, struct rtsx_chip *chip)
switch (srb->cmnd[1] & 0x0F) {
case 0:
#ifdef SUPPORT_SD_LOCK
if (0x64 == srb->cmnd[9]) {
if (0x64 == srb->cmnd[9])
sd_card->sd_lock_status |= SD_SDR_RST;
}
#endif
retval = reset_sd_card(chip);
if (retval != STATUS_SUCCESS) {
Expand Down

0 comments on commit 00e9c10

Please sign in to comment.