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/0884745dfaba
branches: trunk
changeset: 367386:0884745dfaba
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 cbb8e5d16e22 -r 0884745dfaba 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