Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1081857pxk; Fri, 18 Sep 2020 03:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXDPorM6IkrETdCAxlt6f95p6zfZWSQUswJ/Vesj67DC9cfpn/y/UzVAUpiUQBIL8U6H98 X-Received: by 2002:a17:906:3748:: with SMTP id e8mr32265030ejc.71.1600424503188; Fri, 18 Sep 2020 03:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424503; cv=none; d=google.com; s=arc-20160816; b=IRht9Wixmrh0LPEdrMcn5h2G7sKN5L+wTDXJImYkLhpEkf0ew4AaCAjApi439SsNMP J0KdbQ0q9CyVelJ3252qKbBCRR6/PUggitPkaGY+RvCwfTkeC7KAdufNrgNOe+Co2NWz 3AdxHBs44VL+xkZ2/c7hWK2HSztyZlQJUHFyw6UyZYEMC6ZqRd6wcT+mXc62psB6F9Tv SruUl5XZ6hZBv47Be20YF5BuJhEdzZsOh9EICveMUHTjWytVodynpOniE0peJCflYMSn /ypyrA/HsxjbB8oRULhYnzPJ6yXTEl0Wv5FqIHs+5Lx+GrzsmXWy4B3prwPjvDPgCc3N t/Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/OSIQ6tBtdL3aeY9aUzECI29xdQRtgtGrlI7ArNPHWg=; b=PQbbjAnoP4PliiJ7N7A06xZJrx+9k0EIRy+DDEH0Lrsp+XYwkC+ipK4dXou64T9pVf xF7HMzyWID1sXFBQM4qUCaEsALl4bNwp6vjJ9KKOr7hFHuho/+5fD0M89tzIXZRFgAsb D1WKZ3Gl0ak6b1KPIkd6etJw2qineIo1cidvuqjQOOMgEiixjAuDDxsnoZAwPJg0kiou QUPVNLuGqOswhVpJ6AwqFEpWWnQsH733ArYsW8wdWZ9GO14GrLbIVErCsfwfADgPTV9H J3nWdeQLGG7huvot3Dpn9iPGxW7ZdyM6i5Sf8HQTUuFMNTebp/sBZOU7cMERJvGpm11C XKxQ== 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 l19si1848860ejq.87.2020.09.18.03.21.20; Fri, 18 Sep 2020 03:21:43 -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 S1726931AbgIRKTP (ORCPT + 99 others); Fri, 18 Sep 2020 06:19:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56782 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726760AbgIRKSY (ORCPT ); Fri, 18 Sep 2020 06:18:24 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 54F2C73931506DA55A2C; Fri, 18 Sep 2020 18:18:20 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 18:18:11 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 2/9] rtlwifi: rtl8192c: fix comparison to bool warning in phy_common.c Date: Fri, 18 Sep 2020 18:24:58 +0800 Message-ID: <20200918102505.16036-3-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200918102505.16036-1-zhengbin13@huawei.com> References: <20200918102505.16036-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c:1106:14-18: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c index fc6c81291cf5..6a3deca404b9 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c @@ -1103,7 +1103,7 @@ static void _rtl92c_phy_path_adda_on(struct ieee80211_hw *hw, u32 i; pathon = is_patha_on ? 0x04db25a4 : 0x0b1b25a4; - if (false == is2t) { + if (!is2t) { pathon = 0x0bdb25a0; rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0); } else { -- 2.26.0.106.g9fadedd