summaryrefslogtreecommitdiff
path: root/libmom
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-25 21:35:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-25 21:35:31 +0000
commitdbc4c5187b1d41e3331b3c11a45ecfeb5e4f6975 (patch)
tree9cdcc635c3c66d3f577f142d106e1bbfeefe3df6 /libmom
parent78b9579d9eace59a16e173e4acfa1c363e862ec8 (diff)
(mom_ports_identical): Omit uses of deleted members of struct mom_port_ref.c.
Diffstat (limited to 'libmom')
-rw-r--r--libmom/refs-identical.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/libmom/refs-identical.c b/libmom/refs-identical.c
index 74dad9b8..0c4ee885 100644
--- a/libmom/refs-identical.c
+++ b/libmom/refs-identical.c
@@ -24,20 +24,5 @@ int
mom_ports_identical (struct mom_port_ref *obj1,
struct mom_port_ref *obj2)
{
- int ret;
-
- tryagain:
- spin_lock (&obj1->lock);
- if (!spin_try_lock (&obj2->lock))
- {
- spin_unlock (&obj1->lock);
- goto tryagain;
- }
- assert (obj1->refcnt);
- assert (obj2->refcnt);
-
- ret = (obj1->port == obj2->port);
- spin_unlock (&obj1->lock);
- spin_unlock (&obj2->lock);
- return ret;
+ return obj1->port == obj2->port;
}