pespin has uploaded this change for review.

View Change

ipaccess: Simplify code after early return if block

Change-Id: I406b4f4e973c9b75b102aea3d6fe6aab73d91185
---
M src/input/ipaccess.c
1 file changed, 3 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/06/38806/1
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.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I406b4f4e973c9b75b102aea3d6fe6aab73d91185
Gerrit-Change-Number: 38806
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>