diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-10-22 12:32:25 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-10-22 12:32:25 +0300 |
commit | 5724155e5ad20ea1d65f249374517bf5822faec9 (patch) | |
tree | 686b9086a5be8ec35cc93ce421e5e477edc8d331 /profiles | |
parent | 1daaca3d4193e6f32bcd11a6e396149d9fe574f8 (diff) | |
download | bluez-5724155e5ad20ea1d65f249374517bf5822faec9.tar.gz |
gap/gas: Remove unused field
db_id is no longer necessary since gatt_db_register is no longer called.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/gap/gas.c | 3 |
1 files changed, 0 insertions, 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); |