summaryrefslogtreecommitdiff
path: root/src/nonstd/__libc_per_thread.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 16:33:56 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 16:33:56 -0400
commitab5a9fda3dda8698153b6e52f81909f5620c55f8 (patch)
tree860d20b47b82073608f5fe92409634adededf6a6 /src/nonstd/__libc_per_thread.c
parent6ee145aa99a5912383c2c318152fd5c406e7d14a (diff)
remove unused errno
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;