From: Pablo de Lara Date: Mon, 18 Jul 2016 11:20:25 +0000 (+0100) Subject: examples/performance-thread: add missing braces X-Git-Tag: spdx-start~6105 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9a9751b58bd608f9d4d5f0df2b0e96c43ae44bfb;p=dpdk.git examples/performance-thread: add missing braces pthread_detach() function was returning 0 even when not calling lthread_detach(), due to missing braces in conditional (extra indentation was applied, giving a hint this is the correct fix). Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app") Signed-off-by: Pablo de Lara Tested-by: John McNamara Acked-by: John McNamara --- diff --git a/examples/performance-thread/pthread_shim/pthread_shim.c b/examples/performance-thread/pthread_shim/pthread_shim.c index 93c3216d23..0d6100c907 100644 --- a/examples/performance-thread/pthread_shim/pthread_shim.c +++ b/examples/performance-thread/pthread_shim/pthread_shim.c @@ -417,9 +417,10 @@ int pthread_detach(pthread_t tid) if (override) { struct lthread *lt = (struct lthread *)tid; - if (lt == lthread_current()) + if (lt == lthread_current()) { lthread_detach(); return 0; + } NOT_IMPLEMENTED; } return _sys_pthread_funcs.f_pthread_detach(tid);