diff options
| -rw-r--r-- | lib/libthr/thread/thr_spinlock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_spinlock.c b/lib/libthr/thread/thr_spinlock.c index 60e95224cbce..d590ad5796e4 100644 --- a/lib/libthr/thread/thr_spinlock.c +++ b/lib/libthr/thread/thr_spinlock.c @@ -80,10 +80,6 @@ _pthread_spin_init(pthread_spinlock_t *lock, int pshared) { struct pthread_spinlock *s; - if (*lock != NULL) { - if ((*lock)->s_magic == THR_SPIN_MAGIC) - return (EBUSY); - } s = (struct pthread_spinlock *)malloc(sizeof(struct pthread_spinlock)); if (s == NULL) return (ENOMEM); |
