Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3514397ybz; Mon, 4 May 2020 04:36:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJ70AfZwZCkzAV8pNbdbWbCv4TLfF+bhJpmf+yWwdVfYqthBilyoGqtXzsjijlgHNpBqi9l X-Received: by 2002:aa7:d518:: with SMTP id y24mr13551894edq.222.1588592192124; Mon, 04 May 2020 04:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588592192; cv=none; d=google.com; s=arc-20160816; b=Zb6noengH8XBqHqmlhhTEB1/TZQkcsk3zzHmWrK5lHj8UfWqayrBcJKmAvz4CZB7/i b0CNfwaiPXTHhF9ygYMvDYWseVxaqfZuXsCWr9geo/c/4lFtEMpPYf6XQsYKZpFa5xgE WgOVC8bRs87uoPgLgbP0EFG1/BVRv8496f8F//1W/NSm+IgKuKOTcerLFRtiZ5A2uJXY 0NFAeAZGIWlvCDc0bxYQGP5kgjNbuulRdfAUk3obCqcoFhwXjSKiADe31hDc6nfAiqQ1 h8GuCi7Ep8KflHrcQGvu9TNr/GyBWm1Jw0N4OK6kjeKsDqGoFIU6CKMTw/MEzJ1E4pe7 ev6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7RromujCtYwfvkkkAE5sON2uvp+NNvM5hKIMCrDWq64=; b=X65vJUEg2t1hK232oFRUrjSS+MEflFMeC+xmh6C1zvPG41vMYifqU/ZVDvp/3oa6Pg q02pA+LmULIhBgbX8xoYRFiHHSOBoZ66fJwCKA+dKX+s80Nqin88dnUGiy4BREyTN2mK YbetYd14O2jjX2mfDwT42VQh84cFhQkH/YjMKv3inSHw+2L82rLMAMMgtp2/txAAE3HA g8y3xafnFOaDjnbR8gonq42ExBaxvPnzhNIvRlTMHGoIzo7tT5ft3naMsSmWQLopc96Z 2rKY9p8nMQxzXhulo1bpTojqLILFFETCqjwUn6nvN4/mb3BVw5LK0y57C2EeTEgOJYwa 8igQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb18si6633774ejb.318.2020.05.04.04.36.09; Mon, 04 May 2020 04:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbgEDLeK (ORCPT + 99 others); Mon, 4 May 2020 07:34:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55996 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728630AbgEDLeJ (ORCPT ); Mon, 4 May 2020 07:34:09 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EB0C3A751E5CC6D8243C; Mon, 4 May 2020 19:34:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Mon, 4 May 2020 19:33:58 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] rtlwifi: rtl8188ee: remove Comparison to bool in rf.c Date: Mon, 4 May 2020 19:33:21 +0800 Message-ID: <20200504113321.41118-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c:476:6-14: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c:54:5-22: WARNING: Comparison to bool Signed-off-by: Jason Yan --- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c index 0f401ad92c2e..c376817a1bf4 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c @@ -51,7 +51,7 @@ void rtl88e_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, if (rtlefuse->eeprom_regulatory != 0) turbo_scanoff = true; - if (mac->act_scanning == true) { + if (mac->act_scanning) { tx_agc[RF90_PATH_A] = 0x3f3f3f3f; tx_agc[RF90_PATH_B] = 0x3f3f3f3f; @@ -473,7 +473,7 @@ static bool _rtl88e_phy_rf6052_config_parafile(struct ieee80211_hw *hw) break; } - if (rtstatus != true) { + if (!rtstatus) { RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "Radio[%d] Fail!!\n", rfpath); return false; -- 2.21.1