aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-09-14 13:32:26 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-09-15 16:17:37 +0200
commit3f51571a2f7a5a9e5b7fed53ddc3fcd23defd95b (patch)
treee1e66376f9f741455b37b858d613013038dc2b75
parentdaadbc33aa9313be266df2f2d6c8881f77cfd3fc (diff)
abis.c: Convert early return to assert()
This should simply not happen. If other event is received, something is terribly wrong, so we should exit immediately instead of silently failing. Change-Id: I5f4953be735f526bb8b926979233b3c26ba67ce9
-rw-r--r--src/common/abis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index 265883ef..e82ac963 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -201,8 +201,7 @@ static void abis_link_allstate(struct osmo_fsm_inst *fi, uint32_t event, void *d
struct abis_link_fsm_priv *priv = fi->priv;
struct gsm_bts *bts = priv->bts;
- if (event != ABIS_LINK_EV_VTY_RM_ADDR)
- return;
+ OSMO_ASSERT(event == ABIS_LINK_EV_VTY_RM_ADDR);
if (priv->bsc_oml_host == data) {
if (llist_count(&bts->bsc_oml_hosts) <= 1)