Commit 504f0672 authored by Piotr Figiel's avatar Piotr Figiel Committed by Kalle Valo

brcmfmac: remove unused variable i from brcmf_usb_free_q

Variable i is not used so remove it.
Signed-off-by: default avatarPiotr Figiel <p.figiel@camlintechnologies.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2b78e5f5
...@@ -449,13 +449,11 @@ static void brcmf_usb_free_q(struct list_head *q) ...@@ -449,13 +449,11 @@ static void brcmf_usb_free_q(struct list_head *q)
{ {
struct brcmf_usbreq *req, *next; struct brcmf_usbreq *req, *next;
int i = 0;
list_for_each_entry_safe(req, next, q, list) { list_for_each_entry_safe(req, next, q, list) {
if (!req->urb) { if (!req->urb) {
brcmf_err("bad req\n"); brcmf_err("bad req\n");
break; break;
} }
i++;
usb_free_urb(req->urb); usb_free_urb(req->urb);
list_del_init(&req->list); list_del_init(&req->list);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment