diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-25 21:33:13 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-25 21:33:13 +0000 |
commit | f45889af418cfaa6af8053c9c4774e56eefde1e3 (patch) | |
tree | d9a84246264933e690f01c314f650c91aa24990f /libmom | |
parent | 31d1dc038bdfc16cc196ee348658695ea2215198 (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.c | 8 |
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; } |