summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_spec.c')
-rw-r--r--lib/libkse/thread/thr_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_spec.c b/lib/libkse/thread/thr_spec.c
index dc493dd..cf60f38 100644
--- a/lib/libkse/thread/thr_spec.c
+++ b/lib/libkse/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