diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2004-04-24 09:38:41 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2004-04-24 09:38:41 +0000 |
| commit | afa647196b7d8ad5025f82a2235c700f9f4217a8 (patch) | |
| tree | e85536d30ceb14da0502ffb16970962554cc6ae3 | |
| parent | 97d114726d8a5a40b2a3d44acbc3bf1bcde2cb6a (diff) | |
Notes
| -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); |
