* [PATCH -next] perf intel-bts: use true for bool variables
@ 2020-11-09 12:22 Zou Wei
0 siblings, 0 replies; only message in thread
From: Zou Wei @ 2020-11-09 12:22 UTC (permalink / raw)
To: peterz, mingo, acme, mark.rutland, alexander.shishkin, jolsa, namhyung
Cc: adrian.hunter, linux-kernel, Zou Wei
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@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-09 12:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 12:22 [PATCH -next] perf intel-bts: use true for bool variables Zou Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).