summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--arch/nt32/src/crt_tls.c6
-rw-r--r--arch/nt64/src/crt_tls.c6
2 files changed, 2 insertions, 10 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;
}
diff --git a/arch/nt64/src/crt_tls.c b/arch/nt64/src/crt_tls.c
index 15183d3..a3375d8 100644
--- a/arch/nt64/src/crt_tls.c
+++ b/arch/nt64/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;
}