mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-05 08:40:01 +00:00
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
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
9a7d9f4a7f
commit
135dd1b42e
@@ -149,7 +149,7 @@ static void store_iv(bool only_duration)
|
||||
|
||||
static void 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user