Skip to content

Commit 4525284

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 4dae2a4 commit 4525284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/rts5208/rtsx_card.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,8 @@ static inline u32 get_card_size(struct rtsx_chip *chip, unsigned int lun)
10371037
if ((get_lun_card(chip, lun) == SD_CARD) &&
10381038
(sd_card->sd_lock_status & SD_LOCKED))
10391039
return 0;
1040-
else
1041-
return chip->capacity[lun];
1040+
1041+
return chip->capacity[lun];
10421042
#else
10431043
return chip->capacity[lun];
10441044
#endif

0 commit comments

Comments
 (0)