Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7037c511 authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Greg Kroah-Hartman
Browse files

selftests/rseq: Remove useless assignment to cpu variable

parent 9aa134cb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -366,9 +366,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