From 8ff97cc3836c6a2739b62af0a859511c9c284e4f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 15 May 2013 16:29:44 +0200 Subject: [PATCH] test: fix api.h missing if brackets Signed-off-by: Mathieu Desnoyers --- tests/api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/api.h b/tests/api.h index 2b87656..dced0d8 100644 --- a/tests/api.h +++ b/tests/api.h @@ -151,9 +151,10 @@ static int __smp_thread_id(void) } spin_lock(&__thread_id_map_mutex); for (i = 0; i < NR_THREADS; i++) { - if (__thread_id_map[i] == tid) + if (__thread_id_map[i] == tid) { spin_unlock(&__thread_id_map_mutex); return i; + } } spin_unlock(&__thread_id_map_mutex); fprintf(stderr, "smp_thread_id: Rogue thread, id: %lu(%#lx)\n", -- 2.34.1