319-v4.12-0024-brcmfmac-no-need-for-d11inf-instance-in-brcmf_pno_st.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 78b9ccb81377ba908b2c18daf6e1a7beddc281e3 Mon Sep 17 00:00:00 2001
  2. From: Arend Van Spriel <arend.vanspriel@broadcom.com>
  3. Date: Tue, 28 Mar 2017 11:43:28 +0100
  4. Subject: [PATCH] brcmfmac: no need for d11inf instance in
  5. brcmf_pno_start_sched_scan()
  6. In brcmf_pno_start_sched_scan() a local variable is declared and
  7. assigned for struct brcmu_d11inf. However, there is no other reference
  8. to it so it is unnecessary.
  9. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
  10. Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
  11. Reviewed-by: Franky Lin <franky.lin@broadcom.com>
  12. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  13. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  14. ---
  15. drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c | 2 --
  16. 1 file changed, 2 deletions(-)
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c
  19. @@ -182,7 +182,6 @@ int brcmf_pno_clean(struct brcmf_if *ifp
  20. int brcmf_pno_start_sched_scan(struct brcmf_if *ifp,
  21. struct cfg80211_sched_scan_request *req)
  22. {
  23. - struct brcmu_d11inf *d11inf;
  24. struct brcmf_pno_config_le pno_cfg;
  25. struct cfg80211_ssid *ssid;
  26. u16 chan;
  27. @@ -209,7 +208,6 @@ int brcmf_pno_start_sched_scan(struct br
  28. }
  29. /* configure channels to use */
  30. - d11inf = &ifp->drvr->config->d11inf;
  31. for (i = 0; i < req->n_channels; i++) {
  32. chan = req->channels[i]->hw_value;
  33. pno_cfg.channel_list[i] = cpu_to_le16(chan);