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
This commit is contained in:
Pau Espin 2021-09-14 13:32:26 +02:00
parent daadbc33aa
commit 3f51571a2f
1 changed files with 1 additions and 2 deletions

View File

@ -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)