Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7632923ybl; Tue, 24 Dec 2019 06:09:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxAVWEh1IQiuCzBCNP8OMXw45zn8JO/XfyC2NmzpIgWT8x37sH0C09N1YoO2sI/7jH26OTo X-Received: by 2002:aca:6042:: with SMTP id u63mr738435oib.76.1577196560791; Tue, 24 Dec 2019 06:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577196560; cv=none; d=google.com; s=arc-20160816; b=Kg1T46kY2Tx/7dJGKMeUELIkGmHxiOj50v+62NQBev9+1cse895hQJxiZJP4iU2aV6 ZnqKGPgbQW01BaZnYWePXbGA6O3eelOwtbr9PxD7SWrx8hpAxB7piZfaJNjTfLVhqn5b LVpwBB68I18oaExV1q0RO0FN4taj5QqTjAZCKNTIYNTEc50IK/aBh2Yt/o2+dwqwtcjO +6Dd/ZfiEq1YQqFw5pctc9avNqWGeHFb/NPUFxJOtoHW0HHXqB29p+GWrOdUv+89rZXB /wZnbu0QGhGeXbj5yuqDr5baCo+P491I6ybMoHraBQpOO/jKIK7cSCMfauV+Xvz1lVK1 LP/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=WxL+dTjMMqqwz5R1+tuj/yWIhKA7Z8m/tt6WmCRj2II=; b=MZwfEgBa9bLMZqdaC2cCJaVVSW0GMFR3Hmj+5QCX4ZN8RdkRQLYecY4QFqRWsTg+L3 JsuBKxnt6qPYbSB6RJzBTdldqOT+1dTGmzq0jQWmQvUBLqH+2Rrx2IJgwga/Jc5Xxf99 2VXszJnILyE+Wf8DzyNu/Htq2Iwp2Afzcx8iRHpWgvhdts1dgKxXkklA0vfR79at5XK4 BrYk0KFxoiNel2YtRcZrri+MO7nFJl5Nti5fS1Y4/6wTPHKEDE94wemdmH0at1qL4+Jq Iux/9eCtEcM2JL2615aCsqVm/5Oz372bekSCcCpHjBb5PuFTmy/szcQNZ8tbSYQvJfpM kwrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w202si3338247oiw.194.2019.12.24.06.09.11; Tue, 24 Dec 2019 06:09:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726884AbfLXOJD (ORCPT + 99 others); Tue, 24 Dec 2019 09:09:03 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:50220 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726184AbfLXOJA (ORCPT ); Tue, 24 Dec 2019 09:09:00 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A6175A19D7FDE83FE0D3; Tue, 24 Dec 2019 22:08:55 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 22:08:47 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH -next 5/6] wil6210: use true,false for bool variable Date: Tue, 24 Dec 2019 22:16:05 +0800 Message-ID: <1577196966-84926-6-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577196966-84926-1-git-send-email-zhengbin13@huawei.com> References: <1577196966-84926-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain 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/ath/wil6210/main.c:765:1-14: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/wil6210/txrx.c:1143:1-19: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/wil6210/wmi.c:1516:4-23: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/wil6210/wmi.c:1523:4-23: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/wil6210/wmi.c:1538:4-30: WARNING: Assignment of 0/1 to bool variable drivers/net/wireless/ath/wil6210/wmi.c:1545:4-30: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/ath/wil6210/main.c | 2 +- drivers/net/wireless/ath/wil6210/txrx.c | 2 +- drivers/net/wireless/ath/wil6210/wmi.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index 6d39547..3ba5b25 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c @@ -762,7 +762,7 @@ int wil_priv_init(struct wil6210_priv *wil) */ wil->rx_buff_id_count = WIL_RX_BUFF_ARR_SIZE_DEFAULT; - wil->amsdu_en = 1; + wil->amsdu_en = true; return 0; diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 17118d6..bc8c15f 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -1140,7 +1140,7 @@ static int wil_tx_desc_map(union wil_tx_desc *desc, dma_addr_t pa, void wil_tx_data_init(struct wil_ring_tx_data *txdata) { spin_lock_bh(&txdata->lock); - txdata->dot1x_open = 0; + txdata->dot1x_open = false; txdata->enabled = 0; txdata->idle = 0; txdata->last_idle = 0; diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c index dcba0a4..23e1ed6 100644 --- a/drivers/net/wireless/ath/wil6210/wmi.c +++ b/drivers/net/wireless/ath/wil6210/wmi.c @@ -1513,14 +1513,14 @@ static void wmi_link_stats_parse(struct wil6210_vif *vif, u64 tsf, if (vif->fw_stats_ready) { /* clean old statistics */ vif->fw_stats_tsf = 0; - vif->fw_stats_ready = 0; + vif->fw_stats_ready = false; } wil_link_stats_store_basic(vif, payload + hdr_size); if (!has_next) { vif->fw_stats_tsf = tsf; - vif->fw_stats_ready = 1; + vif->fw_stats_ready = true; } break; @@ -1535,14 +1535,14 @@ static void wmi_link_stats_parse(struct wil6210_vif *vif, u64 tsf, if (wil->fw_stats_global.ready) { /* clean old statistics */ wil->fw_stats_global.tsf = 0; - wil->fw_stats_global.ready = 0; + wil->fw_stats_global.ready = false; } wil_link_stats_store_global(vif, payload + hdr_size); if (!has_next) { wil->fw_stats_global.tsf = tsf; - wil->fw_stats_global.ready = 1; + wil->fw_stats_global.ready = true; } break; -- 2.7.4