Diff between cf17c233133fd259fd0368f69aa013fd8e866f5e and f9be8643dc29d162e4f109a3c2d7a1203ebb5f9c

Changed Files

File Additions Deletions Status
android/gatt.c +3 -4 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index ff032e6..12c35ca 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -580,13 +580,12 @@ static struct service *create_service(uint8_t id, bool primary, char *uuid,
 
 	/* Put primary service to our local list */
 	s->primary = primary;
-	if (s->primary)
+	if (s->primary) {
 		memcpy(&s->prim, data, sizeof(s->prim));
-	else
+	} else {
 		memcpy(&s->incl, data, sizeof(s->incl));
-
-	if (!s->primary)
 		return s;
+	}
 
 	/* For primary service allocate queue for included services */
 	s->included = queue_new();