laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-bts/+/20485 )
Change subject: pcu_sock: cosmetic: use ARRAY_SIZE() in pcu_tx_info_ind()
......................................................................
pcu_sock: cosmetic: use ARRAY_SIZE() in pcu_tx_info_ind()
Change-Id: I272ceb09a3e8cac0082dbec3a034776da71d9366
---
M src/common/pcu_sock.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
pespin: Looks good to me, approved
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 68cd039..ff788bf 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -327,7 +327,7 @@
info_ind->initial_mcs = rlcc->initial_mcs;
/* NSVC */
- for (i = 0; i < 2; i++) {
+ for (i = 0; i < ARRAY_SIZE(bts->gprs.nsvc); i++) {
nsvc = &bts->gprs.nsvc[i];
info_ind->nsvci[i] = nsvc->nsvci;
info_ind->local_port[i] = nsvc->local.u.sin.sin_port;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/20485
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I272ceb09a3e8cac0082dbec3a034776da71d9366
Gerrit-Change-Number: 20485
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged