Diff between 1daaca3d4193e6f32bcd11a6e396149d9fe574f8 and 5724155e5ad20ea1d65f249374517bf5822faec9

Changed Files

File Additions Deletions Status
profiles/gap/gas.c +0 -3 modified

Full Patch

diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index cf91a10..877c4fd 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
@@ -53,7 +53,6 @@
 struct gas {
 	struct btd_device *device;
 	struct gatt_db *db;
-	unsigned int db_id;
 	struct bt_gatt_client *client;
 	struct gatt_db_attribute *attr;
 };
@@ -62,7 +61,6 @@ static GSList *devices;
 
 static void gas_free(struct gas *gas)
 {
-	gatt_db_unregister(gas->db, gas->db_id);
 	gatt_db_unref(gas->db);
 	bt_gatt_client_unref(gas->client);
 	btd_device_unref(gas->device);
@@ -292,7 +290,6 @@ static int gap_driver_accept(struct btd_service *service)
 
 	/* Clean-up any old client/db and acquire the new ones */
 	gas->attr = NULL;
-	gatt_db_unregister(gas->db, gas->db_id);
 	gatt_db_unref(gas->db);
 	bt_gatt_client_unref(gas->client);