Staging: rts5208: Fix checkpatch warning: else is not generally useful
authorLeung Timothy Chi King <contact@timothyleung.co>
Wed, 1 Jul 2015 16:44:13 +0000 (09:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 03:18:56 +0000 (20:18 -0700)
The following checkpatch warning was fixed:

WARNING: else is not generally useful after a break or return

Signed-off-by: Leung Timothy Chi King <contact@timothyleung.co>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/sd.c

index a8d657bb5c1bca8f99be1ea050a952ff9d337afa..cb4157960fad6a205d57930ef5d22729ecc3b260 100644 (file)
@@ -3520,12 +3520,11 @@ int reset_sd_card(struct rtsx_chip *chip)
                        if (chip->sd_io) {
                                rtsx_trace(chip);
                                return STATUS_FAIL;
-                       } else {
-                               retval = reset_mmc(chip);
-                               if (retval != STATUS_SUCCESS) {
-                                       rtsx_trace(chip);
-                                       return STATUS_FAIL;
-                               }
+                       }
+                       retval = reset_mmc(chip);
+                       if (retval != STATUS_SUCCESS) {
+                               rtsx_trace(chip);
+                               return STATUS_FAIL;
                        }
                }
        }