summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_sem.c')
-rw-r--r--lib/libthr/thread/thr_sem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_sem.c b/lib/libthr/thread/thr_sem.c
index 17059e3c6b03..c634034a6b74 100644
--- a/lib/libthr/thread/thr_sem.c
+++ b/lib/libthr/thread/thr_sem.c
@@ -213,12 +213,10 @@ _sem_trywait(sem_t *sem)
int
_sem_post(sem_t *sem)
{
- pthread_t curthread;
int retval;
_SEM_CHECK_VALIDITY(sem);
- curthread = _get_curthread();
/*
* sem_post() is required to be safe to call from within signal
* handlers. Thus, we must defer signals.