summaryrefslogtreecommitdiff
path: root/libmom/refs-identical.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmom/refs-identical.c')
-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;
}