projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a256779
)
staging: gdm724x: Removed unnecessary else expression.
author
Gulsah Kose
<gulsah.1004@gmail.com>
Fri, 26 Sep 2014 20:50:09 +0000
(23:50 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:27:34 +0000
(23:27 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in gdm_usb.c
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_usb.c
patch
|
blob
|
history
diff --git
a/drivers/staging/gdm724x/gdm_usb.c
b/drivers/staging/gdm724x/gdm_usb.c
index 5d44490ba77c94425e551ab35dcde015ade2acac..d2a3b350ba6d10ca77728c7cb5eb8c792f6612e2 100644
(file)
--- a/
drivers/staging/gdm724x/gdm_usb.c
+++ b/
drivers/staging/gdm724x/gdm_usb.c
@@
-664,9
+664,8
@@
static void do_tx(struct work_struct *work)
if (!udev->send_complete) {
spin_unlock_irqrestore(&tx->lock, flags);
return;
- } else {
- udev->send_complete = 0;
}
+ udev->send_complete = 0;
if (!list_empty(&tx->hci_list)) {
t = list_entry(tx->hci_list.next, struct usb_tx, list);