From: Mathieu Desnoyers Date: Wed, 15 May 2013 14:29:44 +0000 (+0200) Subject: test: fix api.h missing if brackets X-Git-Tag: v0.8.0~79 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8ff97cc3836c6a2739b62af0a859511c9c284e4f;p=userspace-rcu.git test: fix api.h missing if brackets Signed-off-by: Mathieu Desnoyers --- 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",