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
@@ -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;
}
