From: Jia-Ju Bai Date: Fri, 27 Oct 2017 08:12:30 +0000 (+0300) Subject: wcn36xx: Remove unnecessary rcu_read_unlock in wcn36xx_bss_info_changed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0d5adc35c0b010120391117cb07be6623cf8940;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Bjorn Andersson Signed-off-by: Kalle Valo --- 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);