summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-25 21:33:13 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-25 21:33:13 +0000
commit620e6666b8a3ea47709508110973f47c82aeb3a6 (patch)
treea64535fff86fe701a16b474ef9b51fcb466b8663
parent0e32f27c58ef8ba3c0c54c48f296c922424df0a4 (diff)
(mom_fetch_mach_port): Omit uses of deleted members of struct mom_port_ref.c
-rw-r--r--libmom/fetch-mach-port.c8
1 files changed, 1 insertions, 7 deletions
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;
}