Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1396658ybz; Fri, 17 Apr 2020 23:37:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJJZ1BQQFdVmABnjdps1faPgUIB1diWZ7kJkv10hnVJMPI+0o1WErhZQstpYLa/z1D9abEC X-Received: by 2002:a50:a2e5:: with SMTP id 92mr6277234edm.139.1587191849613; Fri, 17 Apr 2020 23:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587191849; cv=none; d=google.com; s=arc-20160816; b=BBJiF5jbCT3Jt2RwAppxQfNUHeEm+llT4MAbG6IySP8+JTfPNSYYl2bbY2wzUR1Hnw BseGrZwhF57t/+SXzvqRc9ckMRjI5GA0TMg6TtRNj9l9/oli9IFJPkqH8ytOj+NlGJ64 gArKlcrv3wFZQNGRXhd+cstGbzoGazNxcLF36+BoN35yJ12CGR+czjNAFNTQp0CEBDMz 1gY0xeBN3Msrq7p6zbsb2ip+WctvAxd7f6XccGbn/aGELoQMJaYIJO7WiEMRcrLunDAh 0vpAiMbqaF9YngGdUXzg16NbAFeWiZT3iquc+zrDUjevm4H7oVbffOsYuey1nyH1T2wE 2VRA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GLgyiGiK3x6m5Kfa6UVJjrIpWzxJh5mGXzmr4e6jIuU=; b=f9mR5gQbU06ze1D19UZnKdM+1EKyS7AYVdyK10S6EVwt95Uk2u1g1FAB3uGrNgcdhE gqE+7UyNl6aiM5MikW9/x0eG5JeiSMoIe23dxFaiecgrZ1cIqNoXQCrpIkAcZp9eA4G2 c/eK2Q8DSw9WCUx+nKkPaFpEKi0YDwOge7O9FKpCYvgCdgmw03+12OKkBUlfGQZW3ivp j9c+n4D5l/fr5QjaZiyFJZd6OvePuRyFVo0oXDqy8DjtF4DVltHpjjTVez8vDuPR5JlB 4pe5ea+jKtoaoNcd7xJnDOIPgpZvfbmBMJ31HqQie/VJe32Tn2GxXXugbQmAVGLnKx+j JQHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 dd5si235154edb.34.2020.04.17.23.37.03; Fri, 17 Apr 2020 23:37:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726014AbgDRGgj (ORCPT + 99 others); Sat, 18 Apr 2020 02:36:39 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42966 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbgDRGgj (ORCPT ); Sat, 18 Apr 2020 02:36:39 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CA0D7D4961E27377769F; Sat, 18 Apr 2020 14:36:33 +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; Sat, 18 Apr 2020 14:36:22 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH 3/5] rtlwifi: rtl8192ee: use true,false for bool variables Date: Sat, 18 Apr 2020 15:02:34 +0800 Message-ID: <20200418070236.9620-4-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200418070236.9620-1-yanaijie@huawei.com> References: <20200418070236.9620-1-yanaijie@huawei.com> 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c:78:1-34: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c:80:1-34: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c index b337d599b6f4..7a16563b3a5d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c @@ -75,9 +75,9 @@ static int rtl92ee_init_sw_vars(struct ieee80211_hw *hw) rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); - rtlpriv->dm.dm_initialgain_enable = 1; + rtlpriv->dm.dm_initialgain_enable = true; rtlpriv->dm.dm_flag = 0; - rtlpriv->dm.disable_framebursting = 0; + rtlpriv->dm.disable_framebursting = false; rtlpci->transmit_config = CFENDFORM | BIT(15); /*just 2.4G band*/ -- 2.21.1