staging: rts5208: Delete braces are not necessary
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Sat, 4 Oct 2014 22:26:47 +0000 (01:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:07 +0000 (10:29 +0800)
Fix checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_scsi.c

index bbbf796..1161082 100644 (file)
@@ -584,9 +584,8 @@ static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
        case MAKE_MEDIUM_READY:
        case LOAD_MEDIUM:
-               if (check_card_ready(chip, lun)) {
+               if (check_card_ready(chip, lun))
                        return TRANSPORT_GOOD;
-               }
                set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
                TRACE_RET(chip, TRANSPORT_FAILED);