Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1081578pxk; Fri, 18 Sep 2020 03:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCPwfY0QelCdMqpt3dpO9Z/AuaAD0CM9WT/XxQfyBzYhCJ1nj39cJHh9ZltaMeinlNNGuD X-Received: by 2002:a05:6402:1b9a:: with SMTP id cc26mr36928919edb.30.1600424473372; Fri, 18 Sep 2020 03:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424473; cv=none; d=google.com; s=arc-20160816; b=omyB0HVr6SVvTqTJ5m5olyQusLWH60oByyPGBfkBMOnQSTemxSzJmY3eRj9jAaBBf6 1JDLvWmq19ZNP5hNz5CAu7WUlF/Wuxu9+IYkJKpycY0eiZ3P4wLLiWvvnSr7rwi1z0CO 9aTqP/dvhmjIf9CCgMCB/UN7kWhCT2HMruHuEUhnJJxR+87K2tQ3KDdjaq7Kwk1RlBBI 04mlKvg1kCxx1OZ9ytyOwpJcAP7FB1YyAx63YBh47FT1fDbgMiz62jj3zuYuSS7fC988 fPjcZ7FFbdrZa63gTrH/7XrkP4kDDnuxSOHZVW87Pdm+gXiloARYql5aJy0S/6uLUDQV XzMw== 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=yOR0MuU76Y2JgAfzNciB2Fm+CTmJgJI5pWrI9bU8qmI=; b=Xn1bO5txETNwId8bGkx0HupnTyv6KxfzbbwOtS4dm0R8db6j0FPvQOUwmLqZ81n6Ho OGXJwosuPoGLcueTptP7cPiR/8HicLw8h6+I0fzs5MX0GaEWhVsIZO6SJ0gcDUZ/jeXp Qe20k2FSaMt7s7EjfUgYUJr8pft6YxsswMrV8rXsraORNOWAeRteDnzG4uzG4z7ZnH9U NlkH4haHP3h68qZHoCK3xoDE997mNVfI6BRT90Bh9itXEUk0+EN6SOpc8wxmEWW/M1ch sX6UHr2tySkcbym7bxIEG16mU6R3p7MwX0xhh9kQ8aUUAkl52cBxEa9TCPQJn3icL6Ph iN2A== 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 t12si1844784eji.422.2020.09.18.03.20.49; Fri, 18 Sep 2020 03:21:13 -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 S1726701AbgIRKSW (ORCPT + 99 others); Fri, 18 Sep 2020 06:18:22 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56576 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726305AbgIRKSW (ORCPT ); Fri, 18 Sep 2020 06:18:22 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2CC6EA322717D81899F0; 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:14 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 9/9] rtlwifi: rtl8723be: fix comparison to bool warning in hw.c Date: Fri, 18 Sep 2020 18:25:05 +0800 Message-ID: <20200918102505.16036-10-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-wireless@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c:861:6-35: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c index 3c7ba8214daf..0748aedce2ad 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c @@ -858,7 +858,7 @@ static bool _rtl8723be_init_mac(struct ieee80211_hw *hw) rtl_write_word(rtlpriv, REG_CR, 0x2ff); if (!rtlhal->mac_func_enable) { - if (_rtl8723be_llt_table_init(hw) == false) + if (!_rtl8723be_llt_table_init(hw)) return false; } -- 2.26.0.106.g9fadedd