Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1080757pxk; Fri, 18 Sep 2020 03:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgO+ALSxXAZMy+iMLJKA7ggy2D9QoQng1zBoloMEO3rtrK7SUMBuHl+tyHBk5LQXwbPrgh X-Received: by 2002:a17:906:874f:: with SMTP id hj15mr36997857ejb.539.1600424385534; Fri, 18 Sep 2020 03:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424385; cv=none; d=google.com; s=arc-20160816; b=WPFX2w4iQY8uVu11L782I0L3CC7Yg4cQAumPBlawP5Mmz1A6xtELXwOfmzmWbgh7Eg Y+I+sqLeP7fLgFVR0YibX5Tn9YFnrXS9uyNefIKV4/+Tlt22DiGPcvHqo5wX6tAIgt49 Vwslso6ORcOGkIWUT10/aCJEB4UUNkffAlWcSi9y0V9t2zDQtvNuVXWml9f3o+ZD0e8Y R4rHjIW7HR1yGZxROY+v86J4qcVt4yBeW5CSIVsABCHRmaatF1JEEKLD2Vyw7Dz0fMbV 2Bir9GbYaaO32wZDggfDJsnvhkbacd5vNwVNFlUm3J/IE+a4vJYBCAiLnICvtRNyi86c EDpA== 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=vwOrZkCou9/I+19vE0MNLNhlSghexyjnpWdIqelnUvo=; b=EV5x8RcfJcUgFJLDYMyzTYC08vJH8THUmq/jF2zDyCCzctWGZ+RYj2bDYSNg/i4+zz 8pvcjvoa2i1s+VgSa6QilfKkO/bLTf9M/r+n54Z78MRwFIt70mu1KHsqC5m4UbDWtryk jxZaaZ8PurVFmjVI3MVoO0mCje3IWpMO+09xo9SGE1BB7vfG/RrHa83v/mdnRo+af9l/ NAGEvPj1JGXsiODUCb9k9JdiizWM+BM/G4rQbI9ixy4Lbbb+GuFATgfvdcGRgsEb4SeY cmUr0dgYOIy8rBMLmcxAtkntrR9mL6+/HHLvldxCMAtRpvRi3WSDQwGjyVnA2Q+hFNTd SJgA== 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 i19si1696850edy.150.2020.09.18.03.19.20; Fri, 18 Sep 2020 03:19:45 -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 S1726861AbgIRKSs (ORCPT + 99 others); Fri, 18 Sep 2020 06:18:48 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56814 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726365AbgIRKSZ (ORCPT ); Fri, 18 Sep 2020 06:18:25 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 59EF5D12FDCE2785E4E9; 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 1/9] rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c Date: Fri, 18 Sep 2020 18:24:57 +0800 Message-ID: <20200918102505.16036-2-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/rtl8192ee/hw.c:797:6-33: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c index 473296e808ba..88fa2e593fef 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c @@ -794,7 +794,7 @@ static bool _rtl92ee_init_mac(struct ieee80211_hw *hw) rtl_write_word(rtlpriv, REG_CR, 0x2ff); if (!rtlhal->mac_func_enable) { - if (_rtl92ee_llt_table_init(hw) == false) { + if (!_rtl92ee_llt_table_init(hw)) { rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "LLT table init fail\n"); return false; -- 2.26.0.106.g9fadedd