From e297907c89e7d8ffc86fcf064c12bb4e1b118fa0 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 25 May 1996 21:35:31 +0000 Subject: (mom_ports_identical): Omit uses of deleted members of struct mom_port_ref.c. --- libmom/refs-identical.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'libmom') 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; } -- cgit v1.2.3