projects
/
librseq.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a91728e
)
fix: dead initialization reported by scan-build
author
Michael Jeanson
<mjeanson@efficios.com>
Wed, 15 Dec 2021 22:34:56 +0000
(17:34 -0500)
committer
Mathieu Desnoyers
<mathieu.desnoyers@efficios.com>
Tue, 4 Jan 2022 14:00:45 +0000
(09:00 -0500)
Change-Id: I7f3735f6f6332e1ba66be480ea4a7dfc5d9f84a9
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/param_test.c
patch
|
blob
|
blame
|
history
diff --git
a/tests/param_test.c
b/tests/param_test.c
index 3e2ec69c5e6cbb6f78cfa50bd9451ddd8c6d9f2e..fa110739cad7ec7b5e99047f734fd3799a824b6c 100644
(file)
--- a/
tests/param_test.c
+++ b/
tests/param_test.c
@@
-368,9
+368,7
@@
static void *test_percpu_spinlock_thread(void *arg)
abort();
reps = thread_data->reps;
for (i = 0; i < reps; i++) {
- int cpu = rseq_cpu_start();
-
- cpu = rseq_this_cpu_lock(&data->lock);
+ int cpu = rseq_this_cpu_lock(&data->lock);
data->c[cpu].count++;
rseq_percpu_unlock(&data->lock, cpu);
#ifndef BENCHMARK
This page took
0.024283 seconds
and
4
git commands to generate.