diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-02-04 13:40:19 +0100 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-02-04 13:40:24 +0100 |
commit | f7c7d2baf6e2b6cd4a295c21040fd4e6c5492bf1 (patch) | |
tree | f3c93d3920b79e8b22c5a7f50d530e44c7aab34a | |
parent | df80385f26cb5889ac2da629ace2715eb33f4146 (diff) |
pcu_sock: pcu_tx_si_all(): fix returning ununitialized rc
Change-Id: Ic78614bebade701db14439aa64ecf89c7104a639
Fixes: CID#216932
-rw-r--r-- | src/common/pcu_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index d7092f90..250491f1 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -777,7 +777,7 @@ static int pcu_tx_si_all(struct gsm_bts *bts) if (GSM_BTS_HAS_SI(bts, si_types[i])) { rc = pcu_tx_si(bts, si_types[i], true); if (rc < 0) - rc = -EINVAL; + return rc; } else { LOGP(DPCU, LOGL_INFO, "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, |