diff mbox series

[3/3] brcmfmac: remove unused variable i from brcmf_usb_free_q

Message ID 1552058658-23250-4-git-send-email-p.figiel@camlintechnologies.com (mailing list archive)
State Accepted
Commit 504f06725d015954a0fcafdf1d90a6795ca8f769
Delegated to: Kalle Valo
Headers show
Series brcmfmac: fix race during USB disconnect | expand

Commit Message

Piotr Figiel March 8, 2019, 3:25 p.m. UTC
Variable i is not used so remove it.

Signed-off-by: Piotr Figiel <p.figiel@camlintechnologies.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
index 5ab397d..c00b9fd 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
@@ -449,13 +449,11 @@  static void brcmf_usb_free_q(struct list_head *q)
 {
 	struct brcmf_usbreq *req, *next;
 
-	int i = 0;
 	list_for_each_entry_safe(req, next, q, list) {
 		if (!req->urb) {
 			brcmf_err("bad req\n");
 			break;
 		}
-		i++;
 		usb_free_urb(req->urb);
 		list_del_init(&req->list);
 	}