Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1081206pxk; Fri, 18 Sep 2020 03:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznBGY2IYaMIPGDZmfzrt+gEfqme6NZzRy5v6MCdQ5VbTNmB07Pvovn4xn+kJdEWmxm8gD3 X-Received: by 2002:a17:906:455:: with SMTP id e21mr36817953eja.170.1600424435564; Fri, 18 Sep 2020 03:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424435; cv=none; d=google.com; s=arc-20160816; b=eOjhPJT0KDeLSuXy201dNCe9kuk4Kt02vGCrdfjMtsJtoAmoLhUcwAUpTffVBJAwyL UgFC1du41v6w7oYR5T65AQsJG0pR6zR8ypu1Qagg2PL2genn1r5OJXRzVgpz3pBowtU8 N0dMzQyu5PDWltXOvtLNoAQVmZZJMbRuuSEIJK6YjIlT/sFtQglUjTpLMdzN0V+XonhK aoLPh9PbRu4jXyC+dz+sDO1pDUXt7CNJpAl/rqf6Dcl28OPd5mQtnG9jHvRcrkOJmefl y41Ymnap4wOf+MkfO/Zni8CsaN+0F2HOQAp0i5ZsiuwRQCcqD+cdrQv179YdjsTUfYii wWdA== 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=kQyA9fQhwETUkLMoZZwXoajWYYybcXUFtJKLQ64tmsg=; b=a6UsUjejMjS8xQMpgP9v+adqCBclz+EClZIr5a0hi5SHzwNuZNjzBVKo9MoZ3iSbiK 53pfxEEigt41kUnRM8dzwiPfGWyEMP10AwMK32QkCJ8f8gQMN3XMxA6R6DZqC9a7kVSE icIiOqFloVpcdxMeJR0bZ0tup5rZPDOwzkH8mJ4rCFiOp7ftqHwaAbgn9x8tTtpxBGKD t2vXfErCX4MijnVh0tq7h5L6VrLakl1ZZk66/LAndo5LRAgiwhB0OESdZGYUmWIO9dhI +MMUzDjqGOCe4dgQrCNb612021gJxAcdiST92b2/yqw9NJv2c0XPwg4z4k58WZv9ektN D7kw== 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 a3si1661175ejt.659.2020.09.18.03.20.11; Fri, 18 Sep 2020 03:20:35 -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 S1726885AbgIRKSu (ORCPT + 99 others); Fri, 18 Sep 2020 06:18:50 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56778 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726305AbgIRKSY (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 3CCB0A9422D828D12E63; 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:12 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 4/9] rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c Date: Fri, 18 Sep 2020 18:25:00 +0800 Message-ID: <20200918102505.16036-5-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/rtl8821ae/hw.c:1897:5-13: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c index b2e5b9fda669..33ffc24d3675 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c @@ -1894,7 +1894,7 @@ int rtl8821ae_hw_init(struct ieee80211_hw *hw) } rtstatus = _rtl8821ae_init_mac(hw); - if (rtstatus != true) { + if (!rtstatus) { pr_err("Init MAC failed\n"); err = 1; return err; -- 2.26.0.106.g9fadedd