summaryrefslogtreecommitdiff
path: root/libmom
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
commitf45889af418cfaa6af8053c9c4774e56eefde1e3 (patch)
treed9a84246264933e690f01c314f650c91aa24990f /libmom
parent31d1dc038bdfc16cc196ee348658695ea2215198 (diff)
(mom_fetch_mach_port): Omit uses of deleted members of struct mom_port_ref.c
Diffstat (limited to 'libmom')
-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;
}