diff options
-rw-r--r-- | lib/libc_r/uthread/uthread_spec.c | 2 | ||||
-rw-r--r-- | lib/libkse/thread/thr_spec.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_spec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_spec.c b/lib/libc_r/uthread/uthread_spec.c index dc493dd..cf60f38 100644 --- a/lib/libc_r/uthread/uthread_spec.c +++ b/lib/libc_r/uthread/uthread_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); 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); 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); |