summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@163.com>2017-10-27 10:12:30 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2017-10-27 15:59:58 +0200
commitc0d5adc35c0b010120391117cb07be6623cf8940 (patch)
tree24079a0c890c8ef348507959ff4cf62f74a0d1e5 /drivers/net
parentath10k: mark PM functions as __maybe_unused (diff)
downloadlinux-c0d5adc35c0b010120391117cb07be6623cf8940.tar.xz
linux-c0d5adc35c0b010120391117cb07be6623cf8940.zip
wcn36xx: Remove unnecessary rcu_read_unlock in wcn36xx_bss_info_changed
No rcu_read_lock is called, but rcu_read_unlock is still called. Thus rcu_read_unlock should be removed. Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com> Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/wcn36xx/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 35bd50bcbbd5..b83f01d6e3dd 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -812,7 +812,6 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,
if (!sta) {
wcn36xx_err("sta %pM is not found\n",
bss_conf->bssid);
- rcu_read_unlock();
goto out;
}
sta_priv = wcn36xx_sta_to_priv(sta);