Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9537f227 authored by Johannes Berg's avatar Johannes Berg
Browse files

cfg80211: remove a local variable



This local variable is only used once, so remove it.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4b1af479
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);