Diff between 8915343e0a6dabab733cd7f53c743b0e13229c81 and cd97753ba5c5d12168419bf213794e76ec71d94f

Changed Files

File Additions Deletions Status
src/shared/gatt-client.c +1 -5 modified

Full Patch

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 56a7935..a836773 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -104,7 +104,6 @@ struct notify_chrc {
 
 struct notify_data {
 	struct bt_gatt_client *client;
-	bool removed;
 	bool invalid;
 	unsigned int id;
 	int ref_count;
@@ -1378,9 +1377,6 @@ static void notify_handler(void *data, void *user_data)
 	uint16_t value_handle;
 	const uint8_t *value = NULL;
 
-	if (notify_data->removed)
-		return;
-
 	value_handle = get_le16(pdu_data->pdu);
 
 	if (notify_data->chrc->value_handle != value_handle)
@@ -2426,7 +2422,7 @@ bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
 
 	notify_data = queue_find(client->notify_list, match_notify_data_id,
 							UINT_TO_PTR(id));
-	if (!notify_data || notify_data->removed)
+	if (!notify_data)
 		return false;
 
 	assert(notify_data->chrc->notify_count > 0);