]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: avoid calling useless channel context code
authorZhao, Gang <gamerh2o@gmail.com>
Sat, 26 Apr 2014 01:43:40 +0000 (09:43 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Apr 2014 15:52:32 +0000 (17:52 +0200)
commit60ced898b966007ede60425fdc608c9616813851
treed77aa63f53e6a3192ad0c6f6f63ebc5411687328
parent59b1fb943d5a89f40ad8606f42b0468883bd3d7c
mac80211: avoid calling useless channel context code

ieee80211_assign_chanctx() checks if local->use_chanctx is true, so
the two code block related to ieee80211_assign_chanctx() can be moved
into above if clause, emphasize that these code are executed only if
local->use_chanctx is true.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
[change subject]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c