summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_seterrno.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_seterrno.c')
-rw-r--r--lib/libc_r/uthread/uthread_seterrno.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_seterrno.c b/lib/libc_r/uthread/uthread_seterrno.c
index c4fe08b6..570807f 100644
--- a/lib/libc_r/uthread/uthread_seterrno.c
+++ b/lib/libc_r/uthread/uthread_seterrno.c
@@ -47,15 +47,14 @@ void
_thread_seterrno(pthread_t thread, int error)
{
/* Check for the initial thread: */
- if (thread == _thread_initial) {
+ if (thread == _thread_initial)
/* The initial thread always uses the global error variable: */
errno = error;
- } else {
+ else
/*
* Threads other than the initial thread always use the error
* field in the thread structureL
*/
thread->error = error;
- }
}
#endif
OpenPOWER on IntegriCloud