mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
mac80211: remove useless open_count check
__ieee80211_suspend() checks early on if there's anything to do by checking open_count, so there's no need to check again later in the function. Remove the useless check. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
11d62caf93
commit
4854f175c3
@ -178,7 +178,6 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
|
||||
WARN_ON(!list_empty(&local->chanctx_list));
|
||||
|
||||
/* stop hardware - this must stop RX */
|
||||
if (local->open_count)
|
||||
ieee80211_stop_device(local);
|
||||
|
||||
suspend:
|
||||
|
Loading…
Reference in New Issue
Block a user