Skip to content

Commit

Permalink
cfg80211: remove a local variable
Browse files Browse the repository at this point in the history
This local variable is only used once, so remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Feb 4, 2013
1 parent 4b1af47 commit 9537f22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,15 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
kfree_rcu((struct cfg80211_bss_ies *)old,
rcu_head);
} 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);
ies = rcu_access_pointer(found->pub.ies);

rcu_assign_pointer(found->pub.beacon_ies,
tmp->pub.beacon_ies);

/* 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,
tmp->pub.beacon_ies);

Expand Down

0 comments on commit 9537f22

Please sign in to comment.