summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_spec.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-31 23:47:06 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-31 23:47:06 +0000
commit5d359b97bbee13fd309e9daa637ba001007e4a53 (patch)
treea84f531a71c03ee631cd42f6028a93267e1c288a /lib/libpthread/thread/thr_spec.c
parentd972680a31910d8ebd5f437c7b5b4aabcca6e385 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_spec.c')
-rw-r--r--lib/libpthread/thread/thr_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c
index dc493dd74e69..cf60f381edcb 100644
--- a/lib/libpthread/thread/thr_spec.c
+++ b/lib/libpthread/thread/thr_spec.c
@@ -146,7 +146,7 @@ pthread_setspecific(pthread_key_t key, const void *value)
if ((pthread->specific_data) ||
(pthread->specific_data = pthread_key_allocate_data())) {
- if ((key < PTHREAD_KEYS_MAX) && (key_table)) {
+ if (key < PTHREAD_KEYS_MAX) {
/* Lock the key table entry: */
_spinlock(&key_table[key].access_lock);