threshold_timer_update_intv(): call osmo_timer_del() unconditionally
osmo_timer_del() does check if a timer is active internally. Change-Id: Icaf6f31a3235a3fb6993fa2bb35190150e35c2c2
This commit is contained in:
parent
1c6a3459cd
commit
19faae85c6
|
@ -312,8 +312,7 @@ static void threshold_timer_update_intv() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (llist_empty(&threshold_list)) {
|
if (llist_empty(&threshold_list)) {
|
||||||
if (osmo_timer_pending(&threshold_timer))
|
osmo_timer_del(&threshold_timer);
|
||||||
osmo_timer_del(&threshold_timer);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue