342-v5.2-0003-brcmfmac-remove-unused-variable-i-from-brcmf_usb_fre.patch 905 B

1234567891011121314151617181920212223242526272829
  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. Variable i is not used so remove it.
  6. Signed-off-by: Piotr Figiel <p.figiel@camlintechnologies.com>
  7. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  8. ---
  9. drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 2 --
  10. 1 file changed, 2 deletions(-)
  11. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
  12. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
  13. @@ -449,13 +449,11 @@ static void brcmf_usb_free_q(struct list
  14. {
  15. struct brcmf_usbreq *req, *next;
  16. - int i = 0;
  17. list_for_each_entry_safe(req, next, q, list) {
  18. if (!req->urb) {
  19. brcmf_err("bad req\n");
  20. break;
  21. }
  22. - i++;
  23. usb_free_urb(req->urb);
  24. list_del_init(&req->list);
  25. }