All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] android/gatt: Remove redundant code
@ 2014-04-18  0:40 Andrzej Kaczmarek
  2014-04-18  0:40 ` [PATCH 2/6] android/gatt: Cache end handle for characteristics Andrzej Kaczmarek
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andrzej Kaczmarek @ 2014-04-18  0:40 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andrzej Kaczmarek

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-18 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18  0:40 [PATCH 1/6] android/gatt: Remove redundant code Andrzej Kaczmarek
2014-04-18  0:40 ` [PATCH 2/6] android/gatt: Cache end handle for characteristics Andrzej Kaczmarek
2014-04-18  0:40 ` [PATCH 3/6] android/gatt: Simplify discover_char_cb Andrzej Kaczmarek
2014-04-18  0:40 ` [PATCH 4/6] android/gatt: Use cached handle for descriptors discovery Andrzej Kaczmarek
2014-04-18  0:40 ` [PATCH 5/6] android/gatt: Simplify descriptor discovery structs Andrzej Kaczmarek
2014-04-18  0:40 ` [PATCH 6/6] android/gatt: Fix descriptors discovery Andrzej Kaczmarek
2014-04-18 13:25 ` [PATCH 1/6] android/gatt: Remove redundant code Szymon Janc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.