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 Use if pointer from vap.



details:   https://anonhg.NetBSD.org/src-all/rev/beac0d37837a
branches:  trunk
changeset: 376753:beac0d37837a
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue May 12 04:02:01 2020 +1000

description:
Use if pointer from vap.
sc_ec is only used by 2 disabled functions.

diffstat:

 sys/dev/pci/if_iwn.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 297ee014f84f -r beac0d37837a sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Tue May 12 04:00:40 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Tue May 12 04:02:01 2020 +1000
@@ -842,7 +842,7 @@ iwn_vap_create(struct ieee80211com *ic, 
        /* Local setup */
        vap->iv_reset = iwn_reset;
 
-       ifp = vap->iv_ifp = &sc->sc_ec.ec_if;
+       ifp = vap->iv_ifp;// = &sc->sc_ec.ec_if;
         if_initialize(ifp);
        ifp->if_softc = vap;
 //     ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;



Home | Main Index | Thread Index | Old Index