mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-bsc.git
synced 2025-11-02 05:03:23 +00:00
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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user