summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:05:52 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:05:52 +0000
commitfbf89763779b6ebad6ed956d8c81bfdeb8317122 (patch)
tree8d9718f48ab49180e7b6e0714144600e144c42cc /hcid/dbus-hci.c
parentdc59cbaf3eab30d8962a5690810ac9453a7294db (diff)
agent_release is already called through agent_free and doesn't need to be public
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r--hcid/dbus-hci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 0e4ffbba..866ee354 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -401,7 +401,6 @@ int unregister_adapter_path(const char *path)
release_passkey_agents(adapter, NULL);
if (adapter->agent) {
- agent_release(adapter->agent);
agent_destroy(adapter->agent, FALSE);
adapter->agent = NULL;
}
@@ -804,7 +803,6 @@ int hcid_dbus_stop_device(uint16_t id)
release_passkey_agents(adapter, NULL);
if (adapter->agent) {
- agent_release(adapter->agent);
agent_destroy(adapter->agent, FALSE);
adapter->agent = NULL;
}
@@ -995,7 +993,6 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer,
release_passkey_agents(adapter, peer);
if (adapter->agent) {
- agent_release(adapter->agent);
agent_destroy(adapter->agent, FALSE);
adapter->agent = NULL;
}