Skip to content

Commit 07f113b

Browse files
RoxanaGabrielagregkh
authored andcommitted
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>
1 parent 4525284 commit 07f113b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/staging/rts5208/rtsx_scsi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,9 @@ static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip)
586586
case LOAD_MEDIUM:
587587
if (check_card_ready(chip, lun)) {
588588
return TRANSPORT_GOOD;
589-
} else {
590-
set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
591-
TRACE_RET(chip, TRANSPORT_FAILED);
592589
}
590+
set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
591+
TRACE_RET(chip, TRANSPORT_FAILED);
593592

594593
break;
595594
}

0 commit comments

Comments
 (0)