summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rseq
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2022-01-24 12:12:41 -0500
committerPeter Zijlstra <peterz@infradead.org>2022-02-02 13:11:34 +0100
commit930378d056eac2c96407b02aafe4938d0ac9cc37 (patch)
treeb3d5774e3d086a642b5a96c5fdf282c537f5d996 /tools/testing/selftests/rseq
parentbfdf4e6208051ed7165b2e92035b4bf11f43eb63 (diff)
downloadlinux-930378d056eac2c96407b02aafe4938d0ac9cc37.tar.bz2
selftests/rseq: Remove useless assignment to cpu variable
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20220124171253.22072-4-mathieu.desnoyers@efficios.com
Diffstat (limited to 'tools/testing/selftests/rseq')
-rw-r--r--tools/testing/selftests/rseq/param_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/rseq/param_test.c b/tools/testing/selftests/rseq/param_test.c
index 699ad5f93c34..cc2cfc1da938 100644
--- a/tools/testing/selftests/rseq/param_test.c
+++ b/tools/testing/selftests/rseq/param_test.c
@@ -368,9 +368,7 @@ 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