summaryrefslogtreecommitdiff
path: root/src/nonstd/__libc_per_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nonstd/__libc_per_thread.c')
-rw-r--r--src/nonstd/__libc_per_thread.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nonstd/__libc_per_thread.c b/src/nonstd/__libc_per_thread.c
index ed399480..d487dcad 100644
--- a/src/nonstd/__libc_per_thread.c
+++ b/src/nonstd/__libc_per_thread.c
@@ -4,15 +4,10 @@
void *__libc_per_thread(LIBC_INTERNAL variable)
{
- THREAD_LOCAL int errno;
THREAD_LOCAL struct __locale_t locale;
- switch (variable) {
- case THREAD_LOCALE:
+ if (variable == THREAD_LOCALE) {
return &locale;
-
- default:
- break;
}
return (void*)0;