Diff between 8790d20b0b0f2294eef4c0901dae53b3593fba23 and 8cfdf96ac57a786af1260d7d561fb689bb13b46d

Changed Files

File Additions Deletions Status
src/attrib-server.c +0 -5 modified

Full Patch

diff --git a/src/attrib-server.c b/src/attrib-server.c
index a996884..b2e218c 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -415,7 +415,6 @@ static uint16_t read_by_type(struct gatt_channel *channel, uint16_t start,
 					ATT_ECODE_INVALID_HANDLE, pdu, len);
 
 	for (l = database, length = 0, types = NULL; l; l = l->next) {
-		struct attribute *client_attr;
 
 		a = l->data;
 
@@ -431,10 +430,6 @@ static uint16_t read_by_type(struct gatt_channel *channel, uint16_t start,
 		status = att_check_reqs(channel, ATT_OP_READ_BY_TYPE_REQ,
 								a->read_reqs);
 
-		client_attr = client_cfg_attribute(channel, a, a->data, a->len);
-		if (client_attr)
-			a = client_attr;
-
 		if (status == 0x00 && a->read_cb)
 			status = a->read_cb(a, a->cb_user_data);