summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-08-12 07:10:31 +0000
committerNeal H. Walfield <neal@gnu.org>2008-08-12 07:10:31 +0000
commit0236089d351775cf41a9a951621b7c083488ec20 (patch)
tree7f254a80456e409bcdd5c48b17f0c33fc0cbab53
parentc5441c2e019718a374461106af2b59809cfbdb0e (diff)
2008-08-12 Neal H. Walfield <neal@gnu.org>
* sysdeps/generic/pt-mutex-unlock.c (__pthread_mutex_unlock): Remove dead code.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/generic/pt-mutex-unlock.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 78fd677..2568e87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-12 Neal H. Walfield <neal@gnu.org>
+
+ * sysdeps/generic/pt-mutex-unlock.c (__pthread_mutex_unlock):
+ Remove dead code.
+
2008-08-11 Neal H. Walfield <neal@gnu.org>
* sysdeps/l4/pt-docancel.c: Remove file.
diff --git a/sysdeps/generic/pt-mutex-unlock.c b/sysdeps/generic/pt-mutex-unlock.c
index 4352042..d1ef23a 100644
--- a/sysdeps/generic/pt-mutex-unlock.c
+++ b/sysdeps/generic/pt-mutex-unlock.c
@@ -37,16 +37,7 @@ __pthread_mutex_unlock (pthread_mutex_t *mutex)
if (_pthread_self ())
{
assert (mutex->owner);
-#if 0
- assertx (mutex->owner == _pthread_self (),
- "%p(%x) != %p(%x)",
- mutex->owner,
- ((struct __pthread *) mutex->owner)->threadid,
- _pthread_self (),
- _pthread_self ()->threadid);
-#else
assert (mutex->owner == _pthread_self ());
-#endif
mutex->owner = NULL;
}
#endif