Change in osmo-bts[master]: pcu_sock: cosmetic: use ARRAY_SIZE() in pcu_tx_info_ind()

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Oct 8 19:42:56 UTC 2020


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 <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201008/3ff3b579/attachment.htm>


More information about the gerrit-log mailing list