You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/27 06:12:40 UTC

[02/10] incubator-mynewt-larva git commit: Remove temporary asserts.

Remove temporary asserts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/f5640815
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/f5640815
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/f5640815

Branch: refs/heads/master
Commit: f5640815930e6a61a5b88567267f24c239023598
Parents: 1e4b21e
Author: Christopher Collins <cc...@gmail.com>
Authored: Tue Jan 26 13:04:58 2016 -0500
Committer: Christopher Collins <cc...@gmail.com>
Committed: Wed Jan 27 00:12:01 2016 -0500

----------------------------------------------------------------------
 net/nimble/host/src/ble_gatts.c | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/f5640815/net/nimble/host/src/ble_gatts.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gatts.c b/net/nimble/host/src/ble_gatts.c
index 9bd4199..7ed2dd5 100644
--- a/net/nimble/host/src/ble_gatts.c
+++ b/net/nimble/host/src/ble_gatts.c
@@ -369,7 +369,6 @@ ble_gatts_clt_cfg_access(uint16_t conn_handle, uint16_t attr_handle,
 
     conn = ble_hs_conn_find(conn_handle);
     if (conn == NULL) {
-        assert(0); // XXX temporary.
         return BLE_ATT_ERR_UNLIKELY;
     }
 
@@ -378,14 +377,12 @@ ble_gatts_clt_cfg_access(uint16_t conn_handle, uint16_t attr_handle,
      */
     chr_def_handle = attr_handle - 2;
     if (chr_def_handle > attr_handle) {
-        assert(0); // XXX temporary.
         return BLE_ATT_ERR_UNLIKELY;
     }
 
     clt_cfg = ble_gatts_clt_cfg_find(conn->bhc_gatt_svr.clt_cfgs,
                                      attr_handle - 2);
     if (clt_cfg == 0) {
-        assert(0); // XXX temporary.
         return BLE_ATT_ERR_UNLIKELY;
     }