From 3234c2ba47057215ab6bc6cf7d4b4276e406a183 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 14:34:26 +0100 Subject: [PATCH] cppcheck: fix redundant condition --- armsrc/Standalone/hf_st25_tearoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/Standalone/hf_st25_tearoff.c b/armsrc/Standalone/hf_st25_tearoff.c index 65fc2ba52..aca569882 100644 --- a/armsrc/Standalone/hf_st25_tearoff.c +++ b/armsrc/Standalone/hf_st25_tearoff.c @@ -754,7 +754,7 @@ static int8_t st25tb_tear_off_consolidate_block(const uint8_t block_address, uin } // If value is not FE or target is not FD, try writing value - 2 - if (*read_back_value != 0xFFFFFFFE || (*read_back_value == 0xFFFFFFFE && target_value == 0xFFFFFFFD)) { + if (*read_back_value != 0xFFFFFFFE || target_value == 0xFFFFFFFD) { result = st25tb_tear_off_retry_write_verify(block_address, consolidation_value - 2, TEAR_OFF_WRITE_RETRY_COUNT, 0, read_back_value); if (result != 0) {