staging: rts5208: remove unnecessary else
authorRoxana Blaj <roxanagabriela10@gmail.com>
Thu, 2 Oct 2014 15:20:34 +0000 (18:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 17:07:04 +0000 (10:07 -0700)
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>
drivers/staging/rts5208/rtsx_card.h

index b19239e106f975434d57ceb6ec6950884e5ed2e3..75cf5889bda4ec42172038f2ef8c52f883233c12 100644 (file)
@@ -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