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/5b597ba5a1d4
branches:  trunk
changeset: 370859:5b597ba5a1d4
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 97247a611ce8 -r 5b597ba5a1d4 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
@@ -830,9 +830,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