diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2012-09-19 12:22:10 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-21 13:51:53 +0300 |
commit | 66c74b1a194b6e95148d776d4eed3c15231b84cc (patch) | |
tree | 8778cb14d3a5ee76c24f974b7a41f14fc84db61b /profiles/health | |
parent | ae92ea28f9c6bdec8a5f74c646af35df310de129 (diff) | |
download | bluez-66c74b1a194b6e95148d776d4eed3c15231b84cc.tar.gz |
adapter: Simplify DBusConnection object handling
This patch removes redundant references and function parameters for
DBusConnection object and uses btd_get_dbus_connection() call wherever
such object is needed instead.
Pointer returned by this call is guaranteed to be valid for entire
bluetoothd lifetime and thus do not need to be refcounted.
Diffstat (limited to 'profiles/health')
-rw-r--r-- | profiles/health/hdp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c index 351fe1ee8..489e1ebbe 100644 --- a/profiles/health/hdp.c +++ b/profiles/health/hdp.c @@ -1209,8 +1209,7 @@ static void mcl_connected(struct mcap_mcl *mcl, gpointer data) char str[18]; ba2str(&addr, str); - device = adapter_get_device(connection, - hdp_adapter->btd_adapter, str); + device = adapter_get_device(hdp_adapter->btd_adapter, str); if (!device) return; hdp_device = create_health_device(connection, device); |