From e8eb8cb2a42fe63052bb3923b9a3560558e2bc79 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Wed, 29 Aug 2018 12:54:29 +0800 Subject: [PATCH] bluetooth: fix missing braces and indentation --- components/bt/bluedroid/bta/gatt/bta_gattc_utils.c | 3 ++- components/bt/bluedroid/osi/list.c | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c b/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c index 774134478..37193438a 100644 --- a/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c +++ b/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c @@ -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 { diff --git a/components/bt/bluedroid/osi/list.c b/components/bt/bluedroid/osi/list.c index eb46cda45..ede10976b 100644 --- a/components/bt/bluedroid/osi/list.c +++ b/components/bt/bluedroid/osi/list.c @@ -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;