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 Dont return early from running the state m...
details: https://anonhg.NetBSD.org/src-all/rev/c6f5c3de9fb5
branches: trunk
changeset: 935736:c6f5c3de9fb5
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Tue May 12 04:03:03 2020 +1000
description:
Dont return early from running the state machine callback.
diffstat:
sys/dev/pci/if_iwn.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 8d965995a2c3 -r c6f5c3de9fb5 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Tue May 12 04:02:01 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Tue May 12 04:03:03 2020 +1000
@@ -2047,13 +2047,12 @@
iwn_scan(ic);
//ic->ic_state = nstate;
- return 0;
+ break;
case IEEE80211_S_CAC:
case IEEE80211_S_CSA:
case IEEE80211_S_SLEEP:
- printf("NOT USED STATE %d\n", nstate);
- return 0;
+ break;
case IEEE80211_S_ASSOC:
if (ostate != IEEE80211_S_RUN)
break;
@@ -2108,7 +2107,8 @@
break;
}
- return sc->sc_newstate(vap, nstate, arg);
+ error = (*sc->sc_newstate)(vap, nstate, arg);
+ return error;
}
static void __unused
Home |
Main Index |
Thread Index |
Old Index