aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-08 22:21:05 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-09 00:06:01 +0700
commit403a37ec34590b3c3b0b50ca4b855550e8c81663 (patch)
treea1a8b7da03c019ff811045673509581cb9e27de6
parent81ca3206ad0ed4e8158148ef0e6e3904c5bda905 (diff)
pcu_sock: cosmetic: use ARRAY_SIZE() in pcu_tx_info_ind()
-rw-r--r--src/common/pcu_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 68cd0398..ff788bf5 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -327,7 +327,7 @@ int pcu_tx_info_ind(void)
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;