]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: remove unnecessary check
authorZhao, Gang <gamerh2o@gmail.com>
Wed, 19 Mar 2014 09:04:35 +0000 (17:04 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:57 +0000 (21:29 +0100)
commit04e469b3ffb0e7b512fbf45c8c6e185d39897830
tree424b61a6d74544cec3b1f76511aec02020dd23c2
parent72a37789a712893d6411c7f6fa8db86a89004733
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>
net/wireless/scan.c