Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Robert Foss
  • linux
  • Repository
Switch branch/tag
  • linux
  • net
  • mac80211
  • mlme.c
Find file BlameHistoryPermalink
  • Kirtika Ruchandani's avatar
    mac80211: Remove unused 'beaconint_us' variable · ab725725
    Kirtika Ruchandani authored Nov 23, 2016
    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 <johannes.berg@intel.com>
    Signed-off-by: default avatarKirtika Ruchandani <kirtika@chromium.org>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    ab725725