diff --git a/components/esp_timer/src/esp_timer.c b/components/esp_timer/src/esp_timer.c index 023c92e8246..8af96f9d8ab 100644 --- a/components/esp_timer/src/esp_timer.c +++ b/components/esp_timer/src/esp_timer.c @@ -323,7 +323,6 @@ static IRAM_ATTR esp_err_t timer_insert(esp_timer_handle_t timer, bool without_u static IRAM_ATTR esp_err_t timer_remove(esp_timer_handle_t timer) { esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; - timer_list_lock(dispatch_method); esp_timer_handle_t first_timer = LIST_FIRST(&s_timers[dispatch_method]); LIST_REMOVE(timer, list_entry); timer->alarm = 0; @@ -339,7 +338,6 @@ static IRAM_ATTR esp_err_t timer_remove(esp_timer_handle_t timer) #if WITH_PROFILING timer_insert_inactive(timer); #endif - timer_list_unlock(dispatch_method); return ESP_OK; }