Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3513565ybz; Mon, 4 May 2020 04:35:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKw1nNALYBHEdvmyy9ADgicFZCUdJ36MT9Ff3SpVzHzj+XMya+P+g/xoj1pdqSGJ7dWyXps X-Received: by 2002:a17:906:a3ca:: with SMTP id ca10mr14819950ejb.298.1588592133444; Mon, 04 May 2020 04:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588592133; cv=none; d=google.com; s=arc-20160816; b=vBrEbahxnuPzaVXRDkdExehjKeHouRHw5+6E3ePpOmm+hpC9jS524lcxb3tG4XBWlY PxAlG9oaTOvpzYY/Nin7tNCe6IjmohGFQHcpIgTpElZFNWmgWAhBFzlyVXRLNMuiylr8 DJNKogqX9nudrSitRmzrEda/mWwq73h6KKrGhfjmrrYSHwVzT/e/s6VfexIBhyDAMGU+ uh95SWY6ro79zOxPgAjVm1IEnTSEE+ZYOJHAMOh3c6FtzPwQTGJ9ebTDOVlv8BKZCMqF dQ44ILau4rZSsXJxhaU19ejCS1/6qs9Xyojie5b+fLjPVTodqaa1JONy5DTcXiyFrnwC wuPA== 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 :message-id:date:subject:cc:to:from; bh=xS31QhQDU89cZrNZF9h1kBw4SJwAmPeIB3elmcWL3Fk=; b=aU+RnIRHwO8bKDgepXCkx+SyDQGCVqZ/GCgQV5nMmPbHefbepIhmHUW4N4lHxDIw5Z gD5biNGxrWSLNpY1cIPtF/PdHho6iRJvGSadt/INYBAT1n9ZAch5/ElqXoy/lEMAnsxb ROoZvqXYwL2nCUtrsghv78jwwPJ88SaNiBkf1LuslWwELwGw+we5HxfqNQco+ti4F6VB xEaFtSyUIWlvj6TJJs8IR/3xKaDEgclJAM/K8TbtGKQKNiRPDQ6d1G1IQyHGlj+rKhtn KZsRd7lRVcCVpawOFmBhHLlpiR2Af1Q5yeURTp7Ww99O28RMzbBAcKBKlePmYGsAHnRF 0LWQ== 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 s9si6935515ejz.335.2020.05.04.04.35.10; Mon, 04 May 2020 04:35:33 -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 S1728727AbgEDLeW (ORCPT + 99 others); Mon, 4 May 2020 07:34:22 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3405 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726756AbgEDLeW (ORCPT ); Mon, 4 May 2020 07:34:22 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 03CFBF5CE244F857BAC4; Mon, 4 May 2020 19:34:20 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 4 May 2020 19:34:13 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] ath11k: use true,false for bool variables Date: Mon, 4 May 2020 19:33:36 +0800 Message-ID: <20200504113336.41249-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/ath/ath11k/dp_rx.c:2964:1-39: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/ath11k/dp_rx.c:2965:1-38: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/wireless/ath/ath11k/dp_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index bbd7da48518f..8d3ab3b5213d 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -2961,8 +2961,8 @@ static int ath11k_dp_rx_h_verify_tkip_mic(struct ath11k *ar, struct ath11k_peer return 0; mic_fail: - (ATH11K_SKB_RXCB(msdu))->is_first_msdu = 1; - (ATH11K_SKB_RXCB(msdu))->is_last_msdu = 1; + (ATH11K_SKB_RXCB(msdu))->is_first_msdu = true; + (ATH11K_SKB_RXCB(msdu))->is_last_msdu = true; rxs->flag |= RX_FLAG_MMIC_ERROR | RX_FLAG_MMIC_STRIPPED | RX_FLAG_IV_STRIPPED | RX_FLAG_DECRYPTED; -- 2.21.1