From 19faae85c65a0801c31a3c7d09333ef8e7475884 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 22 Jul 2022 03:40:46 +0700 Subject: [PATCH] threshold_timer_update_intv(): call osmo_timer_del() unconditionally osmo_timer_del() does check if a timer is active internally. Change-Id: Icaf6f31a3235a3fb6993fa2bb35190150e35c2c2 --- CommonLibs/trx_rate_ctr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CommonLibs/trx_rate_ctr.cpp b/CommonLibs/trx_rate_ctr.cpp index a7467c15..38062688 100644 --- a/CommonLibs/trx_rate_ctr.cpp +++ b/CommonLibs/trx_rate_ctr.cpp @@ -312,8 +312,7 @@ static void threshold_timer_update_intv() { return; if (llist_empty(&threshold_list)) { - if (osmo_timer_pending(&threshold_timer)) - osmo_timer_del(&threshold_timer); + osmo_timer_del(&threshold_timer); return; }