From: Lennert Buytenhek Date: Mon, 24 Aug 2009 13:42:36 +0000 (+0200) Subject: mwl8k: fix inverted error test in mwl8k_bss_info_changed() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=942457d63fedd08ce7330b89fc2934be02c3fecc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mwl8k: fix inverted error test in mwl8k_bss_info_changed() Signed-off-by: Lennert Buytenhek Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 41a708ce8730..4d3353cb308b 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -2617,7 +2617,7 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw, priv->capture_beacon = false; rc = mwl8k_fw_lock(hw); - if (!rc) + if (rc) return; if (info->assoc) {