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) {
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/38806?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I406b4f4e973c9b75b102aea3d6fe6aab73d91185
Gerrit-Change-Number: 38806
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>