summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Figiel <p.figiel@camlintechnologies.com>2019-03-08 15:25:09 +0000
committerKalle Valo <kvalo@codeaurora.org>2019-04-04 13:11:04 +0300
commit504f06725d015954a0fcafdf1d90a6795ca8f769 (patch)
tree1d83bec5fe65b1104b853ae68f13a451df08873c
parent2b78e5f5223666d403d4fdb30af4ad65c8da3cdb (diff)
brcmfmac: remove unused variable i from brcmf_usb_free_q
Variable i is not used so remove it. Signed-off-by: Piotr Figiel <p.figiel@camlintechnologies.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
index 5ab397dc2b94..c00b9fd8876b 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);
}