summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-25 19:58:57 -0700
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-25 19:58:57 -0700
commit35c7f1a0155e675c37c4e258c50ed4e49b3ae4f6 (patch)
tree7b9057e4f658d77fd9ba4326fe9f0768873be490
parentaaf0f75d2a18a86bca3c418ddd63e936627c4446 (diff)
Get rid of an unnecessary variable
-rw-r--r--src/dbus-hci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 6713f7b5..465f2bde 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -501,7 +501,6 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer,
{
struct btd_adapter *adapter;
char peer_addr[18];
- const char *paddr = peer_addr;
DBusMessage *reply;
struct btd_device *device;
struct bonding_request_info *bonding;
@@ -520,7 +519,7 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer,
bonding = adapter_get_bonding_info(adapter);
if (status == 0) {
- device = adapter_get_device(connection, adapter, paddr);
+ device = adapter_get_device(connection, adapter, peer_addr);
if (!device) {
/* This should really only happen if we run out of
* memory */