projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d62ca
)
mac80211: remove useless open_count check
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 13 Sep 2016 13:39:29 +0000
(15:39 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 13 Sep 2016 13:39:29 +0000
(15:39 +0200)
__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>
net/mac80211/pm.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/pm.c
b/net/mac80211/pm.c
index 00a43a70e1fc30eedb09ab9dcdde8af2a9c89673..28a3a0957c9e35af7ffc7b2efb12f1611b7e360b 100644
(file)
--- a/
net/mac80211/pm.c
+++ b/
net/mac80211/pm.c
@@
-178,8
+178,7
@@
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);
+ ieee80211_stop_device(local);
suspend:
local->suspended = true;