mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
30 lines
905 B
Diff
30 lines
905 B
Diff
|
From 504f06725d015954a0fcafdf1d90a6795ca8f769 Mon Sep 17 00:00:00 2001
|
||
|
From: Piotr Figiel <p.figiel@camlintechnologies.com>
|
||
|
Date: Fri, 8 Mar 2019 15:25:09 +0000
|
||
|
Subject: [PATCH] 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>
|
||
|
---
|
||
|
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 2 --
|
||
|
1 file changed, 2 deletions(-)
|
||
|
|
||
|
--- 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
|
||
|
{
|
||
|
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);
|
||
|
}
|