summaryrefslogtreecommitdiff
path: root/drivers/staging/ft1000
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2014-09-26 22:49:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-28 23:26:42 -0400
commit96bcbea0d59a5aeacf753bff6a2d67cfa558d4cd (patch)
treec2b413f94c11c502eb3739dcc28d2bfcbed299b9 /drivers/staging/ft1000
parent2effbbdd9514c3b479e5e5ebeb7e996c262c27bf (diff)
staging: ft1000: ft1000-pcmcia: Removed unnecessary else expression.
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>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r--drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
index 02c183d486be..070a1d18b450 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
@@ -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);
}