Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1100869pxk; Thu, 10 Sep 2020 07:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPA/iDtprAA1xX/h5Mx/LU2TU0ng5xl/W8TCfl9VbgimmZIjtTPnyvdhj/1VWFB22WSY2f X-Received: by 2002:a50:f199:: with SMTP id x25mr9183059edl.347.1599746921318; Thu, 10 Sep 2020 07:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599746921; cv=none; d=google.com; s=arc-20160816; b=X8XTfcSsX83uIEuj6M6HnERuPEYdFXLXKXcE5PgdPp1xX+x16gRhX6jcq1NfBCyZ61 eoKqdpiTo5mVmX73jJhLtC6QPfeWAl9TUEjZmN3mA0YFg2hZjBcGL0qrRSCWpWbowTpj xBD8H4tHdOdG5TJn0c7hev7kzLNIL0M2JNFUav3PCCXu564Bj48EBQNH1y8HMzjpjy1E Pw6pFnyaZu3QkG+7bwMP44gZcCDqzeuJW0xSFif3ZTrOi+ZF1RNyLI4tJQ5zIj6Qb+2F hhXiq0jMU2pMGSzhcmR1p+E/ZjvFq7QwTTn8y9T55Ynaai8mOBAREz58jA2BDZAk7KeH Ov9g== 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=3cAQafAD/b2namBKsWN05Tu5zrve5G+I3ivlyhBruX4=; b=mGAa3HP6vsAiQF4sPQgafycUK8UhFtDhKggKoMbgazVhSAzZQi9MDAVmErVmpwro3N vqsze1swZXjxQ0dgVp4jvKYzX4ivWworvBqmVv2/zIctoZVGc5yGCsjmNc7ml67lYWVD UCcJRudJROvHPEWDGoQd8zszRXm6Y3+xeHCm/iKRwME/q8nkACrrn9XmpfGdkCTZfL7F kR5jBWUSSWHuAOwCda3LqEDqOcnrYWAOEnJp2Dd9YSP/DygGPyc/M7PhhyF5Kc2raI9W D7Gbd/BitIhVEWVZJ/xGnF1UnU9dnHr6Kd6DhV5fqLHzhIOsjyMbkEwgT8Zbq8VyzUvA V7tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 19si3549863ejz.498.2020.09.10.07.08.17; Thu, 10 Sep 2020 07:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731032AbgIJODM (ORCPT + 99 others); Thu, 10 Sep 2020 10:03:12 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11775 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730993AbgIJNyt (ORCPT ); Thu, 10 Sep 2020 09:54:49 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DD6926A6D308E9EA3F40; Thu, 10 Sep 2020 21:52:30 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 21:52:22 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 2/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c Date: Thu, 10 Sep 2020 21:59:16 +0800 Message-ID: <20200910135917.143723-3-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200910135917.143723-1-zhengbin13@huawei.com> References: <20200910135917.143723-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c:735:5-9: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c:776:5-9: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c index 8f7689225393..b9775eec4c54 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c @@ -732,7 +732,7 @@ void rtl88ee_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); @@ -773,7 +773,7 @@ u64 rtl88ee_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