aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-08-31 11:49:50 +0200
committerfixeria <vyanitskiy@sysmocom.de>2021-09-23 08:21:57 +0000
commit3bf40e4f3ac6da7aa0ac3e910f4fbab5092417ef (patch)
tree899e444fe89beeb3521ba1d614cf7b97154bb1c1 /src/common/rsl.c
parent03c74baa83f4f3f699fac49affca9903dccb33f1 (diff)
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
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index ca40e499..368590cd 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1589,9 +1589,7 @@ static void parse_repeated_acch_capability(struct gsm_lchan *lchan, struct tlv_p
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),