mirror of https://gerrit.osmocom.org/libosmocore
gsm0502: cosmetic: use ARRAY_SIZE in gsm0502_fn2ccch_block()
Change-Id: Ideb9907fcb5eff74508f44714e478ec46d435a5d
This commit is contained in:
parent
418d76c2cb
commit
f0a1f41cdc
|
@ -293,5 +293,5 @@ static const int ccch_block_table[51] = {
|
||||||
*/
|
*/
|
||||||
int gsm0502_fn2ccch_block(uint32_t fn)
|
int gsm0502_fn2ccch_block(uint32_t fn)
|
||||||
{
|
{
|
||||||
return ccch_block_table[fn % 51];
|
return ccch_block_table[fn % ARRAY_SIZE(ccch_block_table)];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue