[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1604924530-71405-1-git-send-email-zou_wei@huawei.com>
Date: Mon, 9 Nov 2020 20:22:10 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>,
<mark.rutland@....com>, <alexander.shishkin@...ux.intel.com>,
<jolsa@...hat.com>, <namhyung@...nel.org>
CC: <adrian.hunter@...el.com>, <linux-kernel@...r.kernel.org>,
Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] perf intel-bts: use true for bool variables
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 <hulkci@...wei.com>
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
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
Powered by blists - more mailing lists