4c8d073914ec52d71a7a527ef86f9f2086c1b7d4
[openwrt/staging/blogic.git] /
1 From 504f06725d015954a0fcafdf1d90a6795ca8f769 Mon Sep 17 00:00:00 2001
2 From: Piotr Figiel <p.figiel@camlintechnologies.com>
3 Date: Fri, 8 Mar 2019 15:25:09 +0000
4 Subject: [PATCH] brcmfmac: remove unused variable i from brcmf_usb_free_q
5
6 Variable i is not used so remove it.
7
8 Signed-off-by: Piotr Figiel <p.figiel@camlintechnologies.com>
9 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
10 ---
11 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 2 --
12 1 file changed, 2 deletions(-)
13
14 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
15 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
16 @@ -449,13 +449,11 @@ static void brcmf_usb_free_q(struct list
17 {
18 struct brcmf_usbreq *req, *next;
19
20 - int i = 0;
21 list_for_each_entry_safe(req, next, q, list) {
22 if (!req->urb) {
23 brcmf_err("bad req\n");
24 break;
25 }
26 - i++;
27 usb_free_urb(req->urb);
28 list_del_init(&req->list);
29 }