This is an automated email from the ASF dual-hosted git repository.

naraj pushed a commit to branch revert-958-mesh_sync_march21
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit b62dacfbf125d1f54ea7a181c9174911bec0640b
Author: MichaƂ Narajowski <[email protected]>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Explicitly ignore gatt_service_register return code"
    
    This reverts commit b2f8d90f638f095af1cd3ae5ae98a92d40263ce5.
---
 nimble/host/mesh/src/mesh.c    | 2 +-
 nimble/host/mesh/src/pb_gatt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/host/mesh/src/mesh.c b/nimble/host/mesh/src/mesh.c
index 10c6fff..bbb4ee3 100644
--- a/nimble/host/mesh/src/mesh.c
+++ b/nimble/host/mesh/src/mesh.c
@@ -117,7 +117,7 @@ int bt_mesh_provision(const uint8_t net_key[16], uint16_t 
net_idx,
                atomic_clear_bit(bt_mesh.flags, BT_MESH_VALID);
 
                if (MYNEWT_VAL(BLE_MESH_PB_GATT)  && pb_gatt_enabled) {
-                       (void)bt_mesh_proxy_prov_enable();
+                       bt_mesh_proxy_prov_enable();
                }
 
                return err;
diff --git a/nimble/host/mesh/src/pb_gatt.c b/nimble/host/mesh/src/pb_gatt.c
index bce7cf6..a8f7378 100644
--- a/nimble/host/mesh/src/pb_gatt.c
+++ b/nimble/host/mesh/src/pb_gatt.c
@@ -115,7 +115,7 @@ int bt_mesh_pb_gatt_close(uint16_t conn_handle)
 
 static int link_accept(const struct prov_bearer_cb *cb, void *cb_data)
 {
-       (void)bt_mesh_proxy_prov_enable();
+       bt_mesh_proxy_prov_enable();
        bt_mesh_adv_update();
 
        link.cb = cb;

Reply via email to