Diff between 3bc506ab8080c7057f7da979dd0a8bacaf6e1d38 and e9a6ba3c56700a4c86d812f1c1364ba0388bde2a

Changed Files

File Additions Deletions Status
src/device.c +0 -4 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 5224984..12463cf 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2303,10 +2303,6 @@ DBusMessage *device_create_bonding(struct btd_device *device,
 
 	bonding = bonding_request_new(conn, msg, device, agent_path,
 					capability);
-	if (!bonding) {
-		adapter_cancel_bonding(adapter, &device->bdaddr);
-		return NULL;
-	}
 
 	bonding->listener_id = g_dbus_add_disconnect_watch(conn,
 						dbus_message_get_sender(msg),