提交 9537f227 编写于 作者: J Johannes Berg

cfg80211: remove a local variable

This local variable is only used once, so remove it.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 4b1af479
...@@ -583,16 +583,15 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev, ...@@ -583,16 +583,15 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
kfree_rcu((struct cfg80211_bss_ies *)old, kfree_rcu((struct cfg80211_bss_ies *)old,
rcu_head); rcu_head);
} else if (rcu_access_pointer(tmp->pub.beacon_ies)) { } else if (rcu_access_pointer(tmp->pub.beacon_ies)) {
const struct cfg80211_bss_ies *old, *ies; const struct cfg80211_bss_ies *old;
old = rcu_access_pointer(found->pub.beacon_ies); old = rcu_access_pointer(found->pub.beacon_ies);
ies = rcu_access_pointer(found->pub.ies);
rcu_assign_pointer(found->pub.beacon_ies, rcu_assign_pointer(found->pub.beacon_ies,
tmp->pub.beacon_ies); tmp->pub.beacon_ies);
/* Override IEs if they were from a beacon before */ /* Override IEs if they were from a beacon before */
if (old == ies) if (old == rcu_access_pointer(found->pub.ies))
rcu_assign_pointer(found->pub.ies, rcu_assign_pointer(found->pub.ies,
tmp->pub.beacon_ies); tmp->pub.beacon_ies);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册