Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1396659ybz; Fri, 17 Apr 2020 23:37:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4eTcc+cSfaAbfSZUrbtYP75zzIbR1vVWgZiUMyiBKvPe46LEVqtu6vvBAjvwST6V5DJx0 X-Received: by 2002:a50:d71e:: with SMTP id t30mr6475918edi.246.1587191849622; 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=i/2zMDClVoEgi7tIjpnxfgiciKsneEgI9jkE/ep72QIYStB0YJFKDOGRDodX6fbH7L kEq5t+FanPSGV82jNsENmkoOGFGLQ7BIYtEq/+c1VSk3/xEVE6qzrEGhAwyPfmcYmbFN 0xt7hXm+X+hUcexo+iDEhYCd118vTNlqysEg0tCx5TJEaG3fLdvjpWnh8+t9x84sPybU izBS5JG8AHQvxBgyBZxR7pA0i8LPNqR5yliz/URnyX2m9aZJd4uxEOAMfIJG1DANk4HD Pk8zOZ1YVFpIxrQ/fVTk+XlhVI3W7dJOJYk+jTIObzzjnIEgajWT6gPcrPyrc9/nWKWO cKvg== 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=jkLAQqMOAPa2UZ37PFr8Nazq+9GxRbmkv14XVCEqyLg=; b=kj9TJnES50jGPwrtn87VHZT0id4us7pUzZoaeOpkUHkLggSCgvPm0OGxS8ScyobqbK GVw7wsvF+/JMhk9vnOEpbXD8ejZM0Sm9jP1tlnXz7icbtJK1e52vm7zP8+94FJqFINd3 0aLgemmyvOXGKEI5zwK4EqYTl3IZj7ho9GQvGLveTRn0lAK0VV3s+3PdaooudP79myUP 8UyMpj2lRixy3iuOAGRATQe0SZVXNJRjEVFKHz2Dv+IRpW53JEmb7g9/hLCTgMkzCpjV acYCFfllSySQXuXndWawj0Ebc9jEzC53i6uvFlwDBSYNkjSdJjJj/xm8lRzx48iytiQk 6h+Q== 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 i13si18370759edt.174.2020.04.17.23.36.48; 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 S1725969AbgDRGgg (ORCPT + 99 others); Sat, 18 Apr 2020 02:36:36 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42956 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725821AbgDRGgf (ORCPT ); Sat, 18 Apr 2020 02:36:35 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C378AF8086D2F8BBD6E3; 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:23 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH 4/5] rtlwifi: rtl8723be: use true,false for bool variables Date: Sat, 18 Apr 2020 15:02:35 +0800 Message-ID: <20200418070236.9620-5-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/rtl8723be/sw.c:77:1-34: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c:79:1-34: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c index 36209ac5b208..d220e8955e37 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c @@ -74,9 +74,9 @@ static int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) rtl8723be_bt_reg_init(hw); 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; rtlpriv->dm.thermalvalue = 0; rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); -- 2.21.1