@@ -82,8 +82,7 @@ static void notify_client(struct bt_conn *conn, void *data)
8282 pend_notify = & csis -> srv .pend_notify [i ];
8383
8484 if (pend_notify -> pending &&
85- bt_addr_le_cmp (bt_conn_get_dst (conn ),
86- & pend_notify -> addr ) == 0 ) {
85+ bt_addr_le_eq (bt_conn_get_dst (conn ), & pend_notify -> addr )) {
8786 pend_notify -> pending = false;
8887 break ;
8988 }
@@ -108,8 +107,7 @@ static void notify_clients(struct bt_csis *csis,
108107
109108 if (pend_notify -> active ) {
110109 if (excluded_client != NULL &&
111- bt_addr_le_cmp (bt_conn_get_dst (excluded_client ),
112- & pend_notify -> addr ) == 0 ) {
110+ bt_addr_le_eq (bt_conn_get_dst (excluded_client ), & pend_notify -> addr )) {
113111 continue ;
114112 }
115113
@@ -453,8 +451,7 @@ static void csis_security_changed(struct bt_conn *conn, bt_security_t level,
453451 pend_notify = & csis -> srv .pend_notify [j ];
454452
455453 if (pend_notify -> pending &&
456- bt_addr_le_cmp (bt_conn_get_dst (conn ),
457- & pend_notify -> addr ) == 0 ) {
454+ bt_addr_le_eq (bt_conn_get_dst (conn ), & pend_notify -> addr )) {
458455 notify_lock_value (csis , conn );
459456 pend_notify -> pending = false;
460457 break ;
@@ -487,8 +484,7 @@ static void handle_csis_disconnect(struct bt_csis *csis, struct bt_conn *conn)
487484
488485 pend_notify = & csis -> srv .pend_notify [i ];
489486
490- if (bt_addr_le_cmp (bt_conn_get_dst (conn ),
491- & pend_notify -> addr ) == 0 ) {
487+ if (bt_addr_le_eq (bt_conn_get_dst (conn ), & pend_notify -> addr )) {
492488 (void )memset (pend_notify , 0 , sizeof (* pend_notify ));
493489 break ;
494490 }
@@ -515,8 +511,7 @@ static void handle_csis_auth_complete(struct bt_csis *csis,
515511 pend_notify = & csis -> srv .pend_notify [i ];
516512
517513 if (pend_notify -> active &&
518- bt_addr_le_cmp (bt_conn_get_dst (conn ),
519- & pend_notify -> addr ) == 0 ) {
514+ bt_addr_le_eq (bt_conn_get_dst (conn ), & pend_notify -> addr )) {
520515#if IS_ENABLED (CONFIG_BT_KEYS_OVERWRITE_OLDEST )
521516 pend_notify -> age = csis -> srv .age_counter ++ ;
522517#endif /* CONFIG_BT_KEYS_OVERWRITE_OLDEST */
@@ -601,7 +596,7 @@ static void csis_bond_deleted(uint8_t id, const bt_addr_le_t *peer)
601596 pend_notify = & csis -> srv .pend_notify [j ];
602597
603598 if (pend_notify -> active &&
604- bt_addr_le_cmp (peer , & pend_notify -> addr ) == 0 ) {
599+ bt_addr_le_eq (peer , & pend_notify -> addr )) {
605600 (void )memset (pend_notify , 0 ,
606601 sizeof (* pend_notify ));
607602 break ;
0 commit comments