staging: rts5208: remove unnecessary else
authorRoxana Blaj <roxanagabriela10@gmail.com>
Sat, 20 Sep 2014 14:21:04 +0000 (17:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:22:25 +0000 (13:22 -0700)
This fixes the 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/ms.c

index db8e22166db8948ad33a1ebd23f7efeac804e993..75d2174f1708cc0cabb108fc8f12ee1309295aab 100644 (file)
@@ -862,8 +862,8 @@ static int ms_read_attribute_info(struct rtsx_chip *chip)
                                        0, 0, buf, 64 * 512);
                if (retval == STATUS_SUCCESS)
                        break;
-               else
-                       rtsx_clear_ms_error(chip);
+
+               rtsx_clear_ms_error(chip);
        }
        if (retval != STATUS_SUCCESS) {
                kfree(buf);