]> granicus.if.org Git - esp-idf/commitdiff
bluetooth: fix indentation warning
authorAnton Maklakov <anton@espressif.com>
Tue, 18 Sep 2018 06:49:08 +0000 (14:49 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 20 Sep 2018 10:53:15 +0000 (18:53 +0800)
components/bt/bluedroid/osi/list.c

index 634727a667982c08514512daeb4e5bc805c7e0b5..2524203995550a7221b142bbfd2840047ccb4f96 100644 (file)
@@ -97,13 +97,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);
-  list_node_t *node = (list_node_t *) osi_calloc(sizeof(list_node_t));
-  if (!node)
-    return false;
-
+    assert(list != NULL);
+    assert(prev_node != NULL);
+    assert(data != NULL);
+    list_node_t *node = (list_node_t *)osi_calloc(sizeof(list_node_t));
+    if (!node) {
+        return false;
+    }
     node->next = prev_node->next;
     node->data = data;
     prev_node->next = node;