staging: ft1000: ft1000-pcmcia: Removed unnecessary else expression.
authorGulsah Kose <gulsah.1004@gmail.com>
Fri, 26 Sep 2014 19:49:26 +0000 (22:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:26:42 +0000 (23:26 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in ft1000_dnld.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c

index 02c183d486bea2faa0c134d074050632376db25d..070a1d18b450953c5aa116b47f5314f893e47649 100644 (file)
@@ -168,10 +168,9 @@ u16 get_handshake(struct net_device *dev, u16 expected_value)
                if ((handshake == expected_value)
                        || (handshake == HANDSHAKE_RESET_VALUE)) {
                        return handshake;
-               } else {
-                       loopcnt++;
-                       mdelay(DSP_WAIT_SLEEP_TIME);
                }
+               loopcnt++;
+               mdelay(DSP_WAIT_SLEEP_TIME);
 
        }
 
This page took 0.025241 seconds and 5 git commands to generate.