]> granicus.if.org Git - esp-idf/commitdiff
bluetooth: fix missing braces and indentation
authorAnton Maklakov <anton@espressif.com>
Wed, 29 Aug 2018 04:54:29 +0000 (12:54 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 29 Aug 2018 06:40:28 +0000 (14:40 +0800)
components/bt/bluedroid/bta/gatt/bta_gattc_utils.c
components/bt/bluedroid/osi/list.c

index 774134478b8dbfb21cd1abdd27e9c5c10c4f96ce..37193438a81318aa020502c0bb1c8d4588b5dc73 100644 (file)
@@ -578,13 +578,14 @@ void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id,
             for (i = 0 ; i < BTA_GATTC_NOTIF_REG_MAX; i ++) {
                 if (p_clrcb->notif_reg[i].in_use &&
                     !bdcmp(p_clrcb->notif_reg[i].remote_bda, remote_bda))
-
+                {
                     /* It's enough to get service or characteristic handle, as
                      * clear boundaries are always around service.
                      */
                     handle = p_clrcb->notif_reg[i].handle;
                     if (handle >= start_handle && handle <= end_handle)
                         memset(&p_clrcb->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG));
+                }
             }
         }
     } else {
index eb46cda45ea30d108186ea1175b7ca8f11f041f1..ede10976b44eba20eb1e281fa653bfa22ceb6226 100644 (file)
@@ -99,13 +99,13 @@ list_node_t *list_back_node(const list_t *list) {
 }
 
 bool list_insert_after(list_t *list, list_node_t *prev_node, void *data) {
-  assert(list != NULL);
-  assert(prev_node != NULL);
-  assert(data != NULL);
+    assert(list != NULL);
+    assert(prev_node != NULL);
+    assert(data != NULL);
 
-  list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t));
-  if (!node)
-    return false;
+    list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t));
+    if (!node)
+        return false;
 
     node->next = prev_node->next;
     node->data = data;