Skip to content

Commit 4da6462

Browse files
zhao-gangjmberg-intel
authored andcommitted
cfg80211: remove unnecessary check
RCU pointer bss->pub.beacon_ies is checked before in previous statement: if (rcu_access_pointer(bss->pub.beacon_ies)) continue; There is no need to check it twice(and in the wrong way :) ). Signed-off-by: Zhao, Gang <gamerh2o@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent fb378c2 commit 4da6462

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/wireless/scan.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,6 @@ static bool cfg80211_combine_bsses(struct cfg80211_registered_device *dev,
659659
continue;
660660
if (ssidlen && ie[1] != ssidlen)
661661
continue;
662-
/* that would be odd ... */
663-
if (bss->pub.beacon_ies)
664-
continue;
665662
if (WARN_ON_ONCE(bss->pub.hidden_beacon_bss))
666663
continue;
667664
if (WARN_ON_ONCE(!list_empty(&bss->hidden_list)))

0 commit comments

Comments
 (0)