Bluetooth: tbs_client: Remove unused subscribe_cnt variable

This removes unused subscribe_cnt from bt_tbs_instance.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2023-06-22 14:21:20 +02:00 committed by Carles Cufí
commit 5452ef378f
2 changed files with 0 additions and 4 deletions

View file

@ -548,9 +548,6 @@ static uint8_t notify_handler(struct bt_conn *conn,
if (data == NULL) {
LOG_DBG("[UNSUBSCRIBED] 0x%04X", params->value_handle);
params->value_handle = 0U;
if (tbs_inst != NULL) {
tbs_inst->subscribe_cnt--;
}
return BT_GATT_ITER_STOP;
}

View file

@ -331,7 +331,6 @@ struct bt_tbs_instance {
uint16_t termination_reason_handle;
bool busy;
uint8_t subscribe_cnt;
#if defined(CONFIG_BT_TBS_CLIENT_CCID)
uint8_t ccid;
#endif /* defined(CONFIG_BT_TBS_CLIENT_CCID) */