diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-02-06 15:14:05 +0100 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-02-06 15:14:05 +0100 |
commit | f7afeb1fa94c0ed5a0642af40ef48c537b771ec4 (patch) | |
tree | fe0711d4ba03e6412e8acd66a67ddbcfd62d686c | |
parent | 5ca7707e85e8297994447275429d3b4e59ac9981 (diff) |
oml: cosmetic code style changes in rx_oml_ipa_rsl_connect()
Change-Id: I2841e15865596bbb24cfe1f27691404514d3b6f0
-rw-r--r-- | src/common/oml.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 02b17701..ce760640 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -1391,15 +1391,12 @@ static int rx_oml_ipa_rsl_connect(struct gsm_bts_trx *trx, struct msgb *msg, uint8_t stream_id = 0; - if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_DST_IP, 4)) { + if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_DST_IP, 4)) ip = ntohl(tlvp_val32_unal(tp, NM_ATT_IPACC_DST_IP)); - } - if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_DST_IP_PORT, 2)) { + if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_DST_IP_PORT, 2)) port = ntohs(tlvp_val16_unal(tp, NM_ATT_IPACC_DST_IP_PORT)); - } - if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_STREAM_ID, 1)) { + if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_STREAM_ID, 1)) stream_id = *TLVP_VAL(tp, NM_ATT_IPACC_STREAM_ID); - } in.s_addr = htonl(ip); LOGP(DOML, LOGL_INFO, "%s: Rx IPA RSL CONNECT IP=%s PORT=%u STREAM=0x%02x\n", |