summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 246f7c8..98dba5f 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -714,8 +714,8 @@ ieee80211_watchdog(struct ieee80211com *ic)
nt->nt_timeout(nt);
need_inact_timer += nt->nt_inact_timer;
}
- nt = ic->ic_sta;
- if (nt != NULL && nt->nt_inact_timer) {
+ nt = &ic->ic_sta;
+ if (nt->nt_inact_timer) {
if (--nt->nt_inact_timer == 0)
nt->nt_timeout(nt);
need_inact_timer += nt->nt_inact_timer;
OpenPOWER on IntegriCloud