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

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 533c122b1 nimble/ble_gap: remove extraneous parentheses
533c122b1 is described below

commit 533c122b10b22be9ecbaae79efc78a7f113eaa09
Author: Guy Mishol <[email protected]>
AuthorDate: Wed Apr 10 10:45:32 2024 +0300

    nimble/ble_gap: remove extraneous parentheses
    
    Fix build warning generated with llvm based compilers on equality 
comparison with extraneous parentheses.
---
 nimble/host/src/ble_gap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index b264efd5c..44d57707a 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -3720,7 +3720,7 @@ ble_gap_ext_adv_clear(void)
         /* If there is an active instance or periodic adv instance,
          * Don't send the command
          * */
-        if ((ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV)) {
+        if (ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV) {
             ble_hs_unlock();
             return BLE_HS_EBUSY;
         }

Reply via email to