[PATCH 1/6] android/gatt: Remove redundant code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cache_all_srvc_chars is called only with empty queue so it's redundant
to handle this condition again inside function.
---
 android/gatt.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index e339789..59bcd23 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1739,10 +1739,6 @@ static void cache_all_srvc_chars(GSList *characteristics, struct queue *q)
 	uint16_t inst_id = 0;
 	bt_uuid_t uuid;
 
-	/* Refresh characteristics cache if already exist */
-	if (!queue_isempty(q))
-		queue_remove_all(q, NULL, NULL, destroy_characteristic);
-
 	for (; characteristics; characteristics = characteristics->next) {
 		struct characteristic *ch;
 
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux