gsm0502: cosmetic: use ARRAY_SIZE in gsm0502_fn2ccch_block()

Change-Id: Ideb9907fcb5eff74508f44714e478ec46d435a5d
This commit is contained in:
Vadim Yanitskiy 2023-06-25 15:47:13 +07:00
parent 418d76c2cb
commit f0a1f41cdc
1 changed files with 1 additions and 1 deletions

View File

@ -293,5 +293,5 @@ static const int ccch_block_table[51] = {
*/
int gsm0502_fn2ccch_block(uint32_t fn)
{
return ccch_block_table[fn % 51];
return ccch_block_table[fn % ARRAY_SIZE(ccch_block_table)];
}