From 620e6666b8a3ea47709508110973f47c82aeb3a6 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 25 May 1996 21:33:13 +0000 Subject: (mom_fetch_mach_port): Omit uses of deleted members of struct mom_port_ref.c --- libmom/fetch-mach-port.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libmom') diff --git a/libmom/fetch-mach-port.c b/libmom/fetch-mach-port.c index b747485e..85262600 100644 --- a/libmom/fetch-mach-port.c +++ b/libmom/fetch-mach-port.c @@ -23,11 +23,5 @@ mach_port_t mom_fetch_mach_port (struct mom_port_ref *obj) { - mach_port_t ret; - - spin_lock (&obj->lock); - assert (obj->refcnt); - ret = obj->port; - spin_unlock (&obj->lock); - return ret; + return obj->port; } -- cgit v1.2.3