summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/src/trxcon.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-22 03:16:17 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-22 03:21:22 +0700
commit5f47751ddbd9fb44cd098346ab9d952d4a454fe5 (patch)
tree804db2ed87c6448e5dc5fd45c51aa54ecb80bade /src/host/trxcon/src/trxcon.c
parent2a2babbeacff5f3aa474ff9632ed77a9e7eb5f11 (diff)
trxcon: call osmo_timer_del() unconditionally
osmo_timer_del() does check if a timer is active internally. Change-Id: I4ede5b19eeb847fe8fdaed52a8b5c801b3de209a
Diffstat (limited to 'src/host/trxcon/src/trxcon.c')
-rw-r--r--src/host/trxcon/src/trxcon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/host/trxcon/src/trxcon.c b/src/host/trxcon/src/trxcon.c
index 77f481ac..9f672e81 100644
--- a/src/host/trxcon/src/trxcon.c
+++ b/src/host/trxcon/src/trxcon.c
@@ -364,8 +364,7 @@ void trxcon_inst_free(struct trxcon_inst *trxcon)
if (trxcon->trx != NULL)
trx_if_close(trxcon->trx);
- if (osmo_timer_pending(&trxcon->fbsb_timer))
- osmo_timer_del(&trxcon->fbsb_timer);
+ osmo_timer_del(&trxcon->fbsb_timer);
if (trxcon->fi != NULL)
osmo_fsm_inst_free(trxcon->fi);