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 Simplify.



details:   https://anonhg.NetBSD.org/src-all/rev/fa5ce012f108
branches:  trunk
changeset: 951708:fa5ce012f108
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sat Jun 20 08:25:56 2020 +1000

description:
Simplify.

diffstat:

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

diffs (14 lines):

diff -r 7b9ddce3b956 -r fa5ce012f108 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Wed Jun 10 22:44:29 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Sat Jun 20 08:25:56 2020 +1000
@@ -757,9 +757,7 @@
 static int
 iwn_reset(struct ieee80211vap *vap, u_long arg)
 {
-       struct ifnet *ifp = vap->iv_ifp;
-       struct iwn_softc *sc = ifp->if_softc;
-       struct ieee80211com *ic = &sc->sc_ic;
+       struct ieee80211com *ic = vap->iv_ic;
 
        if (ic->ic_opmode != IEEE80211_M_MONITOR)
                return ENETRESET;



Home | Main Index | Thread Index | Old Index