Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1114645pxk; Thu, 10 Sep 2020 07:26:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4lqDeEpUM2GWEYWa/2pvX/pGX7IwVCTfp4eYSM6vV4IrM60R9KSVHvZrm36PPWToh6bem X-Received: by 2002:a50:9f22:: with SMTP id b31mr9682867edf.345.1599747960456; Thu, 10 Sep 2020 07:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599747960; cv=none; d=google.com; s=arc-20160816; b=mYOtEwbsyYsaCBUcfgpzMw1U8fG0m1Tz3vE7Mn09RYNRYHdYicHKkFIp3jyorU/wNP KB0C/hJnQlbGQLBjUbv397/jMPkhrweZxeAVAZuY9ZR1VfXZJfsrnmvne8gQrjf3lGEh 0dGs7ILiK71sCjBx5Ami6s587IyFnpiBaVbIxfo6jM7E7FHcgSWCHWjzS3n6fNxoDyO6 UL+hVj/pzKyU2cO+wsZDkeYXHjgQjHiBU7Z4KLMNkUWCgaINVN+mhp7mXB77PYt5jj9k G5L5ILxRXc/svkKeYSq4qugiG9qclqhoD3Z7v1/8h3KXdDws1ChKM2rlijOuEbhH8AkL Xbgw== 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=Maorc5V5ZtxfuALRNVe0KVBuQwvW9KCcvNium+CBOxs=; b=shaRy0b3Dd62oWi1ZC207PpEzVz2JiytJkqkOSiHjfbw87+fuvcZPQ8Z5tePlBQMVf Pnwq31ZVQ6A/Bjei/UxwH6q04hcneglZZ3PZ009OmRMVtmEpSbFubjzxZphpSG3unsCe 0gBymXX82BjX9ogp5HvcuTJdg2B3xFxX5QF83pLAdFGj27TNexgkkesY4U3yEA9QEnjT PZEiwbjzN5R53aj6+IOm7wmH2vigI+MhmriZrFyBaJm+wJ5gizoeRWa3Uv0BoeFKEyGN Oy9F7a13QAqq4pq2M1LBfkr25GD586G5BHd6rPc1xoQ08Rg7lVq5ksk3WAxzmOB0Iu89 E0LA== 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 n12si3555205ejx.468.2020.09.10.07.25.36; Thu, 10 Sep 2020 07:26:00 -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 S1730649AbgIJOZF (ORCPT + 99 others); Thu, 10 Sep 2020 10:25:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56966 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730068AbgIJOK1 (ORCPT ); Thu, 10 Sep 2020 10:10:27 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 96CF9103931C117F82CF; Thu, 10 Sep 2020 22:09:57 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:09:47 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 2/3] rtlwifi: rtl8723ae: fix comparison pointer to bool warning in trx.c Date: Thu, 10 Sep 2020 22:16:41 +0800 Message-ID: <20200910141642.127006-3-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200910141642.127006-1-zhengbin13@huawei.com> References: <20200910141642.127006-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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c:592:5-9: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c:633:5-9: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c index 159f86e665f9..e3ee91b7ea8d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c @@ -589,7 +589,7 @@ void rtl8723e_set_desc(struct ieee80211_hw *hw, u8 *pdesc8, { __le32 *pdesc = (__le32 *)pdesc8; - if (istx == true) { + if (istx) { switch (desc_name) { case HW_DESC_OWN: set_tx_desc_own(pdesc, 1); @@ -630,7 +630,7 @@ u64 rtl8723e_get_desc(struct ieee80211_hw *hw, u32 ret = 0; __le32 *pdesc = (__le32 *)pdesc8; - if (istx == true) { + if (istx) { switch (desc_name) { case HW_DESC_OWN: ret = get_tx_desc_own(pdesc); -- 2.26.0.106.g9fadedd