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:
parent
daadbc33aa
commit
3f51571a2f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue