]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove useless double check for open_count in __ieee80211_suspend()
authorLuciano Coelho <luciano.coelho@intel.com>
Sun, 1 Mar 2015 07:10:07 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2015 09:34:09 +0000 (10:34 +0100)
commit0a8099ebf89bec2eb6df0755e4496ec061242654
tree03b40b947badb6df074f7b4409f23deb77c53a08
parent9319e77be171479f43c18b3090af2c1a54bb3417
mac80211: remove useless double check for open_count in __ieee80211_suspend()

We check local->open_count at the top of the __ieee80211_suspend(), so
there's no need to check for it again.  open_count is protected by the
rtnl, so there's no chance for it to have change between the two
calls.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c