summaryrefslogtreecommitdiffhomepage
path: root/arch/nt32
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nt32')
-rw-r--r--arch/nt32/src/crt_tls.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/nt32/src/crt_tls.c b/arch/nt32/src/crt_tls.c
index 15183d3..a3375d8 100644
--- a/arch/nt32/src/crt_tls.c
+++ b/arch/nt32/src/crt_tls.c
@@ -18,10 +18,6 @@ void * __emutls_get_address (struct __emutls_object * obj)
{
int dsoidx = obj->align & 0xFFFF0000;
struct __tlca * tlca = (struct __tlca *)__psx_tlca();
-
- if (dsoidx)
- return (*tlca->pthread_dtls)[dsoidx >> 16] + obj->offset;
- else
- return tlca->pthread_tls + obj->offset;
+ return tlca->pthread_dtls[dsoidx >> 16] + obj->offset;
}