brcmfmac: no need for d11inf instance in brcmf_pno_start_sched_scan()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Tue, 28 Mar 2017 10:43:28 +0000 (11:43 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 5 Apr 2017 12:42:43 +0000 (15:42 +0300)
In brcmf_pno_start_sched_scan() a local variable is declared and
assigned for struct brcmu_d11inf. However, there is no other reference
to it so it is unnecessary.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c

index 9a25e79a46cf2d256c70c905bf9d03ebbe19afe8..6c3bde83d07085e46a5418673f09df5a5790a1aa 100644 (file)
@@ -182,7 +182,6 @@ int brcmf_pno_clean(struct brcmf_if *ifp)
 int brcmf_pno_start_sched_scan(struct brcmf_if *ifp,
                               struct cfg80211_sched_scan_request *req)
 {
-       struct brcmu_d11inf *d11inf;
        struct brcmf_pno_config_le pno_cfg;
        struct cfg80211_ssid *ssid;
        u16 chan;
@@ -209,7 +208,6 @@ int brcmf_pno_start_sched_scan(struct brcmf_if *ifp,
        }
 
        /* configure channels to use */
-       d11inf = &ifp->drvr->config->d11inf;
        for (i = 0; i < req->n_channels; i++) {
                chan = req->channels[i]->hw_value;
                pno_cfg.channel_list[i] = cpu_to_le16(chan);