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

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

commit 4d5fe7c4752d3ac0ce7d6ef2a22f2a606411b007
Author: raiden00pl <[email protected]>
AuthorDate: Wed Oct 14 11:32:56 2026 +0200

    nimble/mesh: Apply coding style to proxy disconnect handling
    
    Reformat the code touched by the previous commit with clang-format
    so that the coding style check passes. No functional change.
    
    Assisted-by: Claude:claude-fable-5-1
    Signed-off-by: raiden00pl <[email protected]>
---
 nimble/host/mesh/src/proxy_srv.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/nimble/host/mesh/src/proxy_srv.c b/nimble/host/mesh/src/proxy_srv.c
index 8611093b1..09c34310d 100644
--- a/nimble/host/mesh/src/proxy_srv.c
+++ b/nimble/host/mesh/src/proxy_srv.c
@@ -864,17 +864,17 @@ static void gatt_disconnected(struct ble_gap_conn_desc 
conn, uint8_t reason)
        }
 
        client = find_client(conn.conn_handle);
-       if (!client) {
-               return;
-       }
+          if (!client) {
+              return;
+          }
 
-       conn_count--;
-       if (client->cli) {
-               bt_mesh_proxy_role_cleanup(client->cli);
-               client->cli = NULL;
-       }
+          conn_count--;
+          if (client->cli) {
+              bt_mesh_proxy_role_cleanup(client->cli);
+              client->cli = NULL;
+          }
 
-       client->conn_handle = 0xffff;
+          client->conn_handle = 0xffff;
 }
 
 void notify_complete(void)

Reply via email to