From 96bcbea0d59a5aeacf753bff6a2d67cfa558d4cd Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Fri, 26 Sep 2014 22:49:26 +0300 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c | 5 ++--- 1 file 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 02c183d..070a1d1 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); } -- 2.7.4