From f85ef40dcd991dad70ded90859ecee399b89a2b6 Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Tue, 24 Sep 2024 19:53:40 +0800 Subject: [PATCH] fix(esp_hw_support): fix the coverity issue of 'constant' variable guards dead code --- components/esp_hw_support/sleep_retention.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/esp_hw_support/sleep_retention.c b/components/esp_hw_support/sleep_retention.c index d483942313..e437a6fe58 100644 --- a/components/esp_hw_support/sleep_retention.c +++ b/components/esp_hw_support/sleep_retention.c @@ -534,8 +534,6 @@ static esp_err_t sleep_retention_entries_create_impl(const sleep_retention_entri return ESP_ERR_NO_MEM; } sleep_retention_entries_update(retent[i].owner, link, priority); - } else { - break; } } _lock_release_recursive(&s_retention.lock);