Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Fix more variable definition botches.



details:   https://anonhg.NetBSD.org/src-all/rev/8d44d05d2b95
branches:  trunk
changeset: 986078:8d44d05d2b95
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 03 21:37:14 2020 +1000

description:
Fix more variable definition botches.

diffstat:

 sys/dev/pci/if_iwm.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r fd2f7bb0e089 -r 8d44d05d2b95 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 03 21:29:10 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 03 21:37:14 2020 +1000
@@ -3814,6 +3814,7 @@
        if (err)
                return err;
 
+       struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps);
        err = iwm_sf_config(vap, IWM_SF_INIT_OFF);
        if (err)
                return err;
@@ -4150,6 +4151,7 @@
     struct iwm_rx_data *data)
 {
        struct ifnet *ifp = vap->iv_ifp;
+       struct iwm_softc *sc = vap->iv_ic->ic_softc;
        struct iwm_cmd_header *cmd_hdr = &pkt->hdr;
        int idx = cmd_hdr->idx;
        int qid = cmd_hdr->qid;
@@ -7693,7 +7695,7 @@
 iwm_softintr(void *arg)
 {
        struct iwm_softc *sc = arg;
-       struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
+       struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps);
        struct ifnet *ifp = vap->iv_ifp);
        uint32_t r1, r2;
        int isperiodic = 0, s;



Home | Main Index | Thread Index | Old Index