rlcmac: cosmetic: use ARRAY_SIZE() in dl_tbf_dl_slotmask()

Change-Id: I3e0ac847e1fc5af190ffd38e04e3745ab68e4ec5
This commit is contained in:
Vadim Yanitskiy 2023-03-17 07:05:32 +07:00
parent 146643b0f3
commit 939c5ca6e6
1 changed files with 1 additions and 2 deletions

View File

@ -85,10 +85,9 @@ void gprs_rlcmac_dl_tbf_free(struct gprs_rlcmac_dl_tbf *dl_tbf)
static uint8_t dl_tbf_dl_slotmask(struct gprs_rlcmac_dl_tbf *dl_tbf)
{
uint8_t i;
uint8_t dl_slotmask = 0;
for (i = 0; i < 8; i++) {
for (unsigned int i = 0; i < ARRAY_SIZE(dl_tbf->cur_alloc.ts); i++) {
if (dl_tbf->cur_alloc.ts[i].allocated)
dl_slotmask |= (1 << i);
}