Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 103ca1aa authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Andre Eisenbach
Browse files

Add missing curly braces in clear notification

Change-Id: I59b13486f76735e5dd0c07d57b2671c746169bd8
parent 8d1a3a1e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -496,7 +496,7 @@ void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id,
        if ((p_clrcb = bta_gattc_cl_get_regcb(gatt_if)) != NULL) {
            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))
                        !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.
@@ -506,6 +506,7 @@ void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id,
                        memset(&p_clrcb->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG));
                }
            }
        }
    } else {
        APPL_TRACE_ERROR("can not clear indication/notif registration for unknown app");
    }