diff options
| author | yamt <yamt@NetBSD.org> | 2007-12-04 16:08:28 +0000 |
|---|---|---|
| committer | yamt <yamt@NetBSD.org> | 2007-12-04 16:08:28 +0000 |
| commit | fc51c23a2ddf7989a55eda865007e2bc7e83e3d2 (patch) | |
| tree | 717cafd812e3c7bc0dc523655dbe43d5be6275c1 /lib/libpthread | |
| parent | 83caeda725236fc9757b724ce4f787abe9611e04 (diff) | |
remove unnecessary assignments.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread.c | 6 | ||||
| -rw-r--r-- | lib/libpthread/pthread_mutex2.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index 0f404b916c1..c0cda627224 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.91 2007/12/01 01:07:34 ad Exp $ */ +/* $NetBSD: pthread.c,v 1.92 2007/12/04 16:08:28 yamt Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread.c,v 1.91 2007/12/01 01:07:34 ad Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.92 2007/12/04 16:08:28 yamt Exp $"); #define __EXPOSE_STACK 1 @@ -1125,7 +1125,7 @@ pthread__unpark_all(pthread_t self, pthread_spin_t *lock, wakeobj = queue; - for (;; n = 0) { + for (;;) { /* * Pull waiters from the queue and add to this * thread's waiters list. diff --git a/lib/libpthread/pthread_mutex2.c b/lib/libpthread/pthread_mutex2.c index 308392d5e13..11a195ea66b 100644 --- a/lib/libpthread/pthread_mutex2.c +++ b/lib/libpthread/pthread_mutex2.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_mutex2.c,v 1.13 2007/11/27 20:55:03 ad Exp $ */ +/* $NetBSD: pthread_mutex2.c,v 1.14 2007/12/04 16:08:28 yamt Exp $ */ /*- * Copyright (c) 2001, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_mutex2.c,v 1.13 2007/11/27 20:55:03 ad Exp $"); +__RCSID("$NetBSD: pthread_mutex2.c,v 1.14 2007/12/04 16:08:28 yamt Exp $"); #include <sys/types.h> #include <sys/lwpctl.h> @@ -451,7 +451,7 @@ pthread__mutex_wakeup(pthread_t self, pthread_mutex_t *ptm) */ thread = pthread__atomic_swap_ptr(&ptm->ptm_waiters, NULL); - for (;; n = 0) { + for (;;) { /* * Pull waiters from the queue and add to our list. * Use a memory barrier to ensure that we safely |
