From: Roxana Blaj Date: Thu, 2 Oct 2014 15:20:34 +0000 (+0300) Subject: staging: rts5208: remove unnecessary else X-Git-Tag: firefly_0821_release~176^2~3121^2~22 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4525284742fe11426da23d8d0eb4946ed84d84be;p=firefly-linux-kernel-4.4.55.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_card.h b/drivers/staging/rts5208/rtsx_card.h index b19239e106f9..75cf5889bda4 100644 --- a/drivers/staging/rts5208/rtsx_card.h +++ b/drivers/staging/rts5208/rtsx_card.h @@ -1037,8 +1037,8 @@ static inline u32 get_card_size(struct rtsx_chip *chip, unsigned int lun) if ((get_lun_card(chip, lun) == SD_CARD) && (sd_card->sd_lock_status & SD_LOCKED)) return 0; - else - return chip->capacity[lun]; + + return chip->capacity[lun]; #else return chip->capacity[lun]; #endif