From: Roxana Blaj Date: Thu, 2 Oct 2014 15:20:35 +0000 (+0300) Subject: staging: rts5208: remove unnecessary else X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07f113b5d5a86bb5398b7b513b2ff160039d7798;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c index bd033d02df39..bbbf7968a0b6 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; }