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 e9125752d7b244aa53d9b1bd780213bf752baa0f Author: raiden00pl <[email protected]> AuthorDate: Wed Oct 14 13:51:45 2026 +0200 nimble/mesh: Apply coding style to AES-CMAC segment check 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-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- nimble/host/mesh/src/crypto.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nimble/host/mesh/src/crypto.c b/nimble/host/mesh/src/crypto.c index 6121ea027..47d826396 100644 --- a/nimble/host/mesh/src/crypto.c +++ b/nimble/host/mesh/src/crypto.c @@ -40,16 +40,16 @@ int bt_mesh_aes_cmac(const uint8_t key[16], struct bt_mesh_sg *sg, } for (; sg_len; sg_len--, sg++) { - if (sg->len && mbedtls_cipher_cmac_update(&ctx, sg->data, sg->len)) { - goto done; - } - } + if (sg->len && mbedtls_cipher_cmac_update(&ctx, sg->data, sg->len)) { + goto done; + } + } - if (mbedtls_cipher_cmac_finish(&ctx, mac)) { - goto done; - } + if (mbedtls_cipher_cmac_finish(&ctx, mac)) { + goto done; + } - err = 0; + err = 0; done: mbedtls_cipher_free(&ctx);
