Skip to content

Commit ee54848

Browse files
PavelVPVnashif
authored andcommitted
Bluetooth: Mesh: Drop PENDING_RESET flag without checking it
Just drop PENDING_RESET flag without checking it. Coverity-CID: 316394, GitHub issue #58530 Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 617154f commit ee54848

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/mesh

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/rpl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void bt_mesh_rpl_pending_store(uint16_t addr)
398398
}
399399
}
400400

401-
atomic_test_and_clear_bit(&rpl_flags, PENDING_RESET);
401+
atomic_clear_bit(&rpl_flags, PENDING_RESET);
402402

403403
if (addr == BT_MESH_ADDR_ALL_NODES) {
404404
(void)memset(&replay_list[last - shift + 1], 0, sizeof(struct bt_mesh_rpl) * shift);

0 commit comments

Comments
 (0)