pcu_sock: use ARRAY_SIZE rather then magic number

Lets use ARRAY_SIZE instead of magic number (8) to determine the
number of timeslots to iterate.

Change-Id: I0e016e6fff420851dfabebef5d8d43c735b968b2
This commit is contained in:
Philipp Maier 2023-01-31 18:10:51 +01:00
parent 809879daae
commit f1b7ee6a63
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static void info_ind_fill_trx(struct gsm_pcu_if_info_trx *trx_info,
return;
}
for (tn = 0; tn < 8; tn++) {
for (tn = 0; tn < ARRAY_SIZE(trx->ts); tn++) {
const struct gsm_bts_trx_ts *ts = &trx->ts[tn];
if (ts->mo.nm_state.operational != NM_OPSTATE_ENABLED)