Skip to contentSkip to conversation

Staging: gdm724x: Fixed else after return or break warning

PATCH New Yeliz Taneroglu 1 participant 1 message Feb 21, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: gdm724x: Fixed else after return or break warning

The following patch fixes the checkpatch.pl warning:
drivers/staging/gdm724x/gdm_usb.c warning: else is not generally useful after a break or return

---
 drivers/staging/gdm724x/gdm_usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/gdm724x/gdm_usb.c +1 -2
index 5d44490..d2a3b35 100644
@@ -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);
Signature · 1 line
1.8.3.2