test: fix api.h missing if brackets
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 14:29:44 +0000 (16:29 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 14:29:44 +0000 (16:29 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/api.h

index 2b876565c991351a86f3c61748addc1d20b1a68a..dced0d8d204e15b84252f1f374f7b5027d12490b 100644 (file)
@@ -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",
This page took 0.031291 seconds and 4 git commands to generate.