diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2014-09-30 13:32:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-02 13:13:37 -0400 |
commit | d1ffa894cd35c402d41c4a12d7eaaaf69d7bfb3e (patch) | |
tree | 66a9b9cd61e66b07aa1d4587dc498e05eef767d2 | |
parent | c89e6be7118da01b3e4b7cf44c0f06ab42cbe2d9 (diff) |
staging: ft1000: ft1000-usb: Removed unnecessary else statement.
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in ft1000_download.c
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 65f980167130..37707da09e9c 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c | |||
@@ -129,10 +129,9 @@ static int check_usb_db(struct ft1000_usb *ft1000dev) | |||
129 | status = ft1000_write_register(ft1000dev, 0x8000, | 129 | status = ft1000_write_register(ft1000dev, 0x8000, |
130 | FT1000_REG_DOORBELL); | 130 | FT1000_REG_DOORBELL); |
131 | break; | 131 | break; |
132 | } else { | ||
133 | loopcnt++; | ||
134 | msleep(10); | ||
135 | } | 132 | } |
133 | loopcnt++; | ||
134 | msleep(10); | ||
136 | 135 | ||
137 | } | 136 | } |
138 | 137 | ||
@@ -190,10 +189,9 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value) | |||
190 | if ((handshake == expected_value) || | 189 | if ((handshake == expected_value) || |
191 | (handshake == HANDSHAKE_RESET_VALUE_USB)) { | 190 | (handshake == HANDSHAKE_RESET_VALUE_USB)) { |
192 | return handshake; | 191 | return handshake; |
193 | } else { | ||
194 | loopcnt++; | ||
195 | msleep(10); | ||
196 | } | 192 | } |
193 | loopcnt++; | ||
194 | msleep(10); | ||
197 | } | 195 | } |
198 | 196 | ||
199 | return HANDSHAKE_TIMEOUT_VALUE; | 197 | return HANDSHAKE_TIMEOUT_VALUE; |