pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/38806?usp=email )
Change subject: ipaccess: Simplify code after early return if block ......................................................................
ipaccess: Simplify code after early return if block
Change-Id: I406b4f4e973c9b75b102aea3d6fe6aab73d91185 --- M src/input/ipaccess.c 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, approved
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index f89db15..cab812c 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -967,11 +967,12 @@ } msgb_free(msg); return ret; - } else if (link->port == IPA_TCP_PORT_OML) + } + + if (link->port == IPA_TCP_PORT_OML) e1i_ts = e1inp_line_ipa_oml_ts(link->line); else if (link->port == IPA_TCP_PORT_RSL) e1i_ts = e1inp_line_ipa_rsl_ts(link->line, link->ofd->priv_nr - E1INP_SIGN_RSL); - OSMO_ASSERT(e1i_ts != NULL);
if (e1i_ts->type == E1INP_TS_TYPE_NONE) {