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/00ff0520d837
branches:  trunk
changeset: 950993:00ff0520d837
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 8d0d09cfc363 -r 00ff0520d837 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