Change in osmo-bts[master]: pcu_sock: pcu_tx_si_all(): fix returning ununitialized rc

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Feb 4 12:40:42 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/22691 )


Change subject: pcu_sock: pcu_tx_si_all(): fix returning ununitialized rc
......................................................................

pcu_sock: pcu_tx_si_all(): fix returning ununitialized rc

Change-Id: Ic78614bebade701db14439aa64ecf89c7104a639
Fixes: CID#216932
---
M src/common/pcu_sock.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/91/22691/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index d7092f9..250491f 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -777,7 +777,7 @@
 		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 @@
 		}
 	}
 
-	return rc;
+	return 0;
 }
 
 static int pcu_rx_txt_ind(struct gsm_bts *bts,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/22691
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic78614bebade701db14439aa64ecf89c7104a639
Gerrit-Change-Number: 22691
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210204/517850e5/attachment.htm>


More information about the gerrit-log mailing list