summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-31 23:47:06 +0000
committerjb <jb@FreeBSD.org>1998-05-31 23:47:06 +0000
commitd1ff6ac11883cb96428f9a21659377bae35b4d8f (patch)
treec4ac217f5c93a74e9fa22e4553b415e5cd2254d0 /lib/libpthread
parentc471a4b5e0b0872a9e1249284ce55428b563da0d (diff)
downloadFreeBSD-src-d1ff6ac11883cb96428f9a21659377bae35b4d8f.zip
FreeBSD-src-d1ff6ac11883cb96428f9a21659377bae35b4d8f.tar.gz
Remove some stale code.
Pointed out by: Amancio
Diffstat (limited to 'lib/libpthread')
-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 dc493dd..cf60f38 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);
OpenPOWER on IntegriCloud