diff options
author | Roxana Blaj <roxanagabriela10@gmail.com> | 2014-10-02 15:20:35 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-02 17:07:04 (GMT) |
commit | 07f113b5d5a86bb5398b7b513b2ff160039d7798 (patch) | |
tree | f6853dfe2145982e5e9dc70069b96dd55c96fc87 /drivers/staging/rts5208/rtsx_scsi.c | |
parent | 4525284742fe11426da23d8d0eb4946ed84d84be (diff) | |
download | linux-07f113b5d5a86bb5398b7b513b2ff160039d7798.tar.xz |
staging: rts5208: remove unnecessary else
This fixes the checkpatch.pl warning:
WARNING: else is not generally useful after a break or return
Signed-off-by: Roxana Blaj <roxanagabriela10@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208/rtsx_scsi.c')
-rw-r--r-- | drivers/staging/rts5208/rtsx_scsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c index bd033d0..bbbf796 100644 --- a/drivers/staging/rts5208/rtsx_scsi.c +++ b/drivers/staging/rts5208/rtsx_scsi.c @@ -586,10 +586,9 @@ static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) case LOAD_MEDIUM: if (check_card_ready(chip, lun)) { return TRANSPORT_GOOD; - } else { - set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); - TRACE_RET(chip, TRANSPORT_FAILED); } + set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); + TRACE_RET(chip, TRANSPORT_FAILED); break; } |