{ms,gprs_pcu}_talloc_destructor(): call osmo_timer_del() unconditionally
osmo_timer_del() does check if a timer is active internally. Change-Id: I062c7636b59714860fa6b49a2d59c6528ebd57e3
This commit is contained in:
parent
8942a2c72f
commit
e33c236db0
|
@ -142,7 +142,6 @@ static int ms_talloc_destructor(struct GprsMs *ms)
|
|||
|
||||
ms_set_reserved_slots(ms, NULL, 0, 0);
|
||||
|
||||
if (osmo_timer_pending(&ms->timer))
|
||||
osmo_timer_del(&ms->timer);
|
||||
|
||||
if (ms->ul_tbf) {
|
||||
|
|
|
@ -65,7 +65,6 @@ static int gprs_pcu_talloc_destructor(struct gprs_pcu *pcu)
|
|||
while ((bts = llist_first_entry_or_null(&pcu->bts_list, struct gprs_rlcmac_bts, list)))
|
||||
talloc_free(bts);
|
||||
|
||||
if (osmo_timer_pending(&pcu->update_stats_timer))
|
||||
osmo_timer_del(&pcu->update_stats_timer);
|
||||
neigh_cache_free(pcu->neigh_cache);
|
||||
si_cache_free(pcu->si_cache);
|
||||
|
|
Loading…
Reference in New Issue