Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3153861pxb; Mon, 9 Nov 2020 04:12:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOs3HXHsQ0rVj3VxUxvccbAWVHVTD1EUB93guilPkB7xlncrT3CpoedRFUAhrxgWurmJDY X-Received: by 2002:a50:99cd:: with SMTP id n13mr15236892edb.10.1604923942237; Mon, 09 Nov 2020 04:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604923942; cv=none; d=google.com; s=arc-20160816; b=UdEFAOqYpCNHxjwoqe2+3v4rNgGSP8ucIVAawlv24ThxsGj5dd1IIMzjCR+LAWgkZG 4LJ7G6H1EMDmWsMUKNQnCC5SPcnx4q8t9EsTFY5aHyKm+r7UMcQlxeZ02ny24kx/bDM/ iH4Tr1FC27GJZr5hk6FLQCoT0BCXQqQIh5TI550RljcDfR21mTei0k0NaAspKnZ64Tz3 PF4+jrp9Rj7/YSpDNCI9h/9wZg+qyh3zWF/JmLINomac7ijszQgrc+K5+wLsOXUBnE3C ZsydBCADcDT3iMHkHYbuiSJZpJPTE3XxcgjWcW12TPjv+cu+dZLzGfseGTPyA2Pi12wQ v3/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=wUksaxEuyKVZ4dN0HBWKNRgSOIINTpl4Xs5tbYWggYs=; b=jM3q8s+4POQT6oYpBDqkhvsYHbv4fM89K3AJJMPp/Gz7GmSe8yWmcchVtCakz5uYsu yakvb5gx6eqr42AN4F6bG3BqSRvuD3MFZVyeE7eSiKsBBydf86LaRffM7kuNZW+zsW3W rNHaqYoJsIcbZ37GqezaS0DjHQKeoyo4JOO2IDOsMb1efAUhtQ4nTAWCSyvJ/6ggt3+r DrldzxCEPmrG6IHXv+1eEA6rR9TP1NM/wnj7t13qlLwm6qV2eVXAQmyxbI1ynDA3fpZc kPhrlUpgpga+vK/A7yMyW98IvNHiPXUX3KZHV1MXBfTrf7w/wcvURLZ1rj58pmsWS3yz Cq6Q== 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 c13si6891276edw.271.2020.11.09.04.11.58; Mon, 09 Nov 2020 04:12:22 -0800 (PST) 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 S1729737AbgKIMK3 (ORCPT + 99 others); Mon, 9 Nov 2020 07:10:29 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7067 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729520AbgKIMK0 (ORCPT ); Mon, 9 Nov 2020 07:10:26 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CV8vY4zjbzhjVK; Mon, 9 Nov 2020 20:10:17 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 9 Nov 2020 20:10:18 +0800 From: Zou Wei To: , , , , , , CC: , , Zou Wei Subject: [PATCH -next] perf intel-bts: use true for bool variables Date: Mon, 9 Nov 2020 20:22:10 +0800 Message-ID: <1604924530-71405-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix coccicheck warnings: ./intel-bts.c:472:3-13: WARNING: Assignment of 0/1 to bool variable ./intel-bts.c:515:3-13: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Zou Wei --- tools/perf/util/intel-bts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c index af1e78d..aa4fad9 100644 --- a/tools/perf/util/intel-bts.c +++ b/tools/perf/util/intel-bts.c @@ -469,7 +469,7 @@ static int intel_bts_process_queue(struct intel_bts_queue *btsq, u64 *timestamp) if (!buffer) { if (!btsq->bts->sampling_mode) - btsq->done = 1; + btsq->done = true; err = 1; goto out_put; } @@ -512,7 +512,7 @@ static int intel_bts_process_queue(struct intel_bts_queue *btsq, u64 *timestamp) *timestamp = btsq->buffer->reference; } else { if (!btsq->bts->sampling_mode) - btsq->done = 1; + btsq->done = true; } out_put: thread__put(thread); -- 2.6.2