[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 19/25: libmachdev: remove mach_device_deallocate
From: |
Samuel Thibault |
Subject: |
[hurd] 19/25: libmachdev: remove mach_device_deallocate |
Date: |
Tue, 27 May 2014 08:32:03 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit dcb434daad5e715e453370e5b802d58c02f7e3de
Author: Justus Winter <address@hidden>
Date: Sun Apr 13 12:05:17 2014 +0200
libmachdev: remove mach_device_deallocate
mach_device_deallocate just called ports_port_deref. However, the
reference counting is done by the translation functions, explicitly
reducing the reference count is just wrong.
* libmachdev/ds_routines.c (mach_device_deallocate): Remove now unused
function.
(ds_device_close): Drop spurious call to mach_device_deallocate.
---
libmachdev/ds_routines.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index 44f1139..2f9388a 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -82,12 +82,6 @@ static int num_emul;
boolean_t is_master_device (mach_port_t port);
-static inline void
-mach_device_deallocate (void *device)
-{
- ports_port_deref (device);
-}
-
/*
* What follows is the interface for the native Mach devices.
*/
@@ -180,7 +174,6 @@ ds_device_close (struct mach_device *device)
ret = (device->dev.emul_ops->close
? (*device->dev.emul_ops->close) (device->dev.emul_data)
: D_SUCCESS);
- mach_device_deallocate (device);
return ret;
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch dde updated (deb7a47 -> 0d80a60), Samuel Thibault, 2014/05/27
- [hurd] 02/25: eth-filter: remove invalid port deallocation, Samuel Thibault, 2014/05/27
- [hurd] 09/25: libmachdev: fix function declaration, Samuel Thibault, 2014/05/27
- [hurd] 07/25: libmachdev: remove unused function, Samuel Thibault, 2014/05/27
- [hurd] 06/25: libmachdev: avoid doing pointer arithmetic to get the port_info, Samuel Thibault, 2014/05/27
- [hurd] 11/25: devnode: fix argp_program_version, remove argp_program_bug_address, Samuel Thibault, 2014/05/27
- [hurd] 18/25: libmachdev: fix device_open, Samuel Thibault, 2014/05/27
- [hurd] 12/25: eth-filter: fix argp_program_version, remove argp_program_bug_address, Samuel Thibault, 2014/05/27
- [hurd] 17/25: eth-multiplexer: improve the demuxer function, Samuel Thibault, 2014/05/27
- [hurd] 19/25: libmachdev: remove mach_device_deallocate,
Samuel Thibault <=
- [hurd] 20/25: libmachdev: make the two port buckets clearly distinct, Samuel Thibault, 2014/05/27
- [hurd] 21/25: libmachdev: drop unused declarations, Samuel Thibault, 2014/05/27
- [hurd] 14/25: devnode: improve the demuxer function, Samuel Thibault, 2014/05/27
- [hurd] 24/25: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2014/05/27
- [hurd] 03/25: Drop DIST_FILES from Makefile, Samuel Thibault, 2014/05/27
- [hurd] 22/25: libmachdev: add missing includes, Samuel Thibault, 2014/05/27
- [hurd] 25/25: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2014/05/27
- [hurd] 23/25: libmachdev: add, fix and use declaration for create_device_port, Samuel Thibault, 2014/05/27
- [hurd] 08/25: libmachdev: fix receiver lookups, Samuel Thibault, 2014/05/27
- [hurd] 05/25: eth-multiplexer: fix receiver lookups, Samuel Thibault, 2014/05/27