diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-25 21:35:31 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-25 21:35:31 +0000 |
commit | e297907c89e7d8ffc86fcf064c12bb4e1b118fa0 (patch) | |
tree | e841c355ad26520b7475d6909624aaddd179e89f | |
parent | d23a87a2d777775cc12ac2091e3ee2f5f651e571 (diff) |
(mom_ports_identical): Omit uses of deleted members of struct mom_port_ref.c.
-rw-r--r-- | libmom/refs-identical.c | 17 |
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; } |