summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}