diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 14:39:29 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 14:39:29 -0700 |
commit | 5db4580312522b870068c89f5064d1c832075434 (patch) | |
tree | 77379a27494b05044a584f3dfff5e79e14c15d7e /src/dbus-hci.c | |
parent | 1af86fb9d1717a27b3a776fc0fb62c96045ccb9a (diff) |
Code cleanup
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 7261deaa..8332fb4d 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -507,7 +507,6 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, struct bonding_request_info *bonding; gboolean paired = TRUE; struct pending_auth_info *auth; - const gchar *dev_path; debug("hcid_dbus_bonding_process_complete: status=%02x", status); @@ -521,10 +520,8 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, bonding = adapter_get_bonding_info(adapter); - if (status) { - if (bonding) - bonding->hci_status = status; - } + if (status && bonding) + bonding->hci_status = status; auth = adapter_find_auth_request(adapter, peer); if (!auth) { @@ -542,6 +539,8 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, device = adapter_get_device(connection, adapter, paddr); if (device) { + const gchar *dev_path; + debug("hcid_dbus_bonding_process_complete: removing temporary flag"); device_set_temporary(device, FALSE); @@ -553,7 +552,6 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, } proceed: - bonding = adapter_get_bonding_info(adapter); if (!bonding || bacmp(&bonding->bdaddr, peer)) return; /* skip: no bonding req pending */ |