This is an automated email from the ASF dual-hosted git repository. naraj pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 26666ceebd64ed797011ca13546fbca5aad78f64 Author: Krzysztof Kopyściński <krzysztof.kopyscin...@codecoup.pl> AuthorDate: Mon Mar 29 13:11:45 2021 +0200 mesh: Resolve dead code in store_seg If CONFIG_BT_MESH_SEQ_STORE_RATE is 1, the check in store_seq can be reduced to a simple if (false), and the modulo code does not need to be included in the build. this is port of aef354c6bc3264de9f2a38b8c56ff5253b35912a --- nimble/host/mesh/src/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/settings.c b/nimble/host/mesh/src/settings.c index 1fb2b08..cb583eb 100644 --- a/nimble/host/mesh/src/settings.c +++ b/nimble/host/mesh/src/settings.c @@ -1189,7 +1189,7 @@ static void store_pending_seq(void) void bt_mesh_store_seq(void) { - if (CONFIG_BT_MESH_SEQ_STORE_RATE && + if (CONFIG_BT_MESH_SEQ_STORE_RATE > 1 && (bt_mesh.seq % CONFIG_BT_MESH_SEQ_STORE_RATE)) { return; }