pcu_sock: pcu_tx_si_all(): fix returning ununitialized rc

Change-Id: Ic78614bebade701db14439aa64ecf89c7104a639
Fixes: CID#216932
This commit is contained in:
Vadim Yanitskiy 2021-02-04 13:40:19 +01:00
parent df80385f26
commit f7c7d2baf6
1 changed files with 2 additions and 2 deletions

View File

@ -777,7 +777,7 @@ static int pcu_tx_si_all(struct gsm_bts *bts)
if (GSM_BTS_HAS_SI(bts, si_types[i])) { if (GSM_BTS_HAS_SI(bts, si_types[i])) {
rc = pcu_tx_si(bts, si_types[i], true); rc = pcu_tx_si(bts, si_types[i], true);
if (rc < 0) if (rc < 0)
rc = -EINVAL; return rc;
} else { } else {
LOGP(DPCU, LOGL_INFO, LOGP(DPCU, LOGL_INFO,
"SI%s is not available on PCU connection\n", "SI%s is not available on PCU connection\n",
@ -785,7 +785,7 @@ static int pcu_tx_si_all(struct gsm_bts *bts)
} }
} }
return rc; return 0;
} }
static int pcu_rx_txt_ind(struct gsm_bts *bts, static int pcu_rx_txt_ind(struct gsm_bts *bts,