Commit ab725725 authored by Kirtika Ruchandani's avatar Kirtika Ruchandani Committed by Johannes Berg
Browse files

mac80211: Remove unused 'beaconint_us' variable

Commit 4a733ef1 (mac80211: remove PM-QoS listener) removed all use
of 'beaconint_us' from ieee80211_recalc_ps() but left the variable
intact. Compiling with W=1 gives the following warning, fix it.
net/mac80211/mlme.c: In function ‘ieee80211_recalc_ps’:
net/mac80211/mlme.c:1481:7: warning: variable ‘beaconint_us’ set but not used [-Wunused-but-set-variable]

iee80211_tu_to_usec has no side-effects and is safe to remove.

Fixes: 4a733ef1

 ("mac80211: remove PM-QoS listener")
Cc: Johannes Berg <>
Signed-off-by: default avatarKirtika Ruchandani <>
Signed-off-by: default avatarJohannes Berg <>
parent 148f284b
...@@ -1486,10 +1486,6 @@ void ieee80211_recalc_ps(struct ieee80211_local *local) ...@@ -1486,10 +1486,6 @@ void ieee80211_recalc_ps(struct ieee80211_local *local)
if (count == 1 && ieee80211_powersave_allowed(found)) { if (count == 1 && ieee80211_powersave_allowed(found)) {
u8 dtimper = found->u.mgd.dtim_period; u8 dtimper = found->u.mgd.dtim_period;
s32 beaconint_us;
beaconint_us = ieee80211_tu_to_usec(
timeout = local->dynamic_ps_forced_timeout; timeout = local->dynamic_ps_forced_timeout;
if (timeout < 0) if (timeout < 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment