nokia: Fix uninitialized access

/osmo-bsc/src/osmo-bsc/bts_nokia_site.c:1903:36: error: 'bcch_trx_nr' may be used uninitialized [-Werror=maybe-uninitialized]
 1903 |                                 if (trx->nr != bcch_trx_nr) {
      |

Change-Id: I6bfdefb44235291a5a1f1c72e5a5149d15e19b8f
This commit is contained in:
Pau Espin Pedrol
2025-03-05 16:22:15 +01:00
parent 2f998b8f88
commit 4caae4712c

View File

@@ -1884,7 +1884,7 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
abis_nm_ack(bts, ref);
if (bts->nokia.configured != 0) {
struct gsm_bts_trx *trx;
uint8_t bcch_trx_nr;
int bcch_trx_nr = -1;
/* we first need to unlock and reset the TRX that runs BCCH */
llist_for_each_entry(trx, &bts->trx_list, list) {
if (trx->ts[0].pchan_from_config == GSM_PCHAN_CCCH ||