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:
parent
809879daae
commit
f1b7ee6a63
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue