pespin submitted this change.
ipaccess: Simplify code after early return if block
Change-Id: I406b4f4e973c9b75b102aea3d6fe6aab73d91185
---
M src/input/ipaccess.c
1 file changed, 3 insertions(+), 2 deletions(-)
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) {
To view, visit change 38806. To unsubscribe, or for help writing mail filters, visit settings.