Change in osmo-bts[master]: rsl: simplfy parse_repeated_acch_capability

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Tue Aug 31 12:14:52 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/25288 )


Change subject: rsl: simplfy parse_repeated_acch_capability
......................................................................

rsl: simplfy parse_repeated_acch_capability

The separate TLVP_PRESENT and TLVP_LEN calls can be replaced by
a single TLVP_PRES_LEN

Change-Id: I6bde1b9df50fdf355e768f5066e86422238b98e9
---
M src/common/rsl.c
1 file changed, 1 insertion(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/88/25288/1

diff --git a/src/common/rsl.c b/src/common/rsl.c
index 6a53499..7d37f9c 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1510,9 +1510,7 @@
 
 	memset(&lchan->repeated_acch_capability, 0, sizeof(lchan->repeated_acch_capability));
 
-	if (!TLVP_PRESENT(tp, RSL_IE_OSMO_REP_ACCH_CAP))
-		return;
-	if (TLVP_LEN(tp, RSL_IE_OSMO_REP_ACCH_CAP) != sizeof(lchan->repeated_acch_capability))
+	if (!TLVP_PRES_LEN(tp, RSL_IE_OSMO_REP_ACCH_CAP, sizeof(lchan->repeated_acch_capability)))
 		return;
 
 	memcpy(&lchan->repeated_acch_capability, TLVP_VAL(tp, RSL_IE_OSMO_REP_ACCH_CAP),

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/25288
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6bde1b9df50fdf355e768f5066e86422238b98e9
Gerrit-Change-Number: 25288
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210831/8ed2ade1/attachment.htm>


More information about the gerrit-log mailing list