From 5724155e5ad20ea1d65f249374517bf5822faec9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 22 Oct 2015 12:32:25 +0300 Subject: [PATCH] gap/gas: Remove unused field db_id is no longer necessary since gatt_db_register is no longer called. --- profiles/gap/gas.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c index cf91a10a5..877c4fddc 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); -- 2.47.3