From e99e5af40209fcc16ebb3ee252c523ca278f9da4 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Fri, 18 Apr 2014 02:40:19 +0200 Subject: [PATCH] android/gatt: Remove redundant code 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 ec4395d86..6a580dc24 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1723,10 +1723,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; -- 2.47.3