Change in ...osmo-iuh[master]: iu_client: pass return value of osmo_sccp_user_sap_down() towards the...

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Thu Oct 3 20:28:32 UTC 2019


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/15665


Change subject: iu_client: pass return value of osmo_sccp_user_sap_down() towards the caller
......................................................................

iu_client: pass return value of osmo_sccp_user_sap_down() towards the caller

osmo_sccp_user_sap_down return 0 on success, negative values on failure

Change-Id: I3b7c2296eb8b26f0881cee643b834336daab86ea
---
M src/iu_client.c
1 file changed, 3 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/65/15665/1

diff --git a/src/iu_client.c b/src/iu_client.c
index c309ce4..f4a9cd3 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -306,9 +306,7 @@
 	osmo_prim_init(&prim->oph, SCCP_SAP_USER,
 			OSMO_SCU_PRIM_N_DATA,
 			PRIM_OP_REQUEST, msg);
-	osmo_sccp_user_sap_down(g_scu, &prim->oph);
-
-	return 0;
+	return osmo_sccp_user_sap_down(g_scu, &prim->oph);
 }
 
 int ranap_iu_tx_common_id(struct ranap_ue_conn_ctx *uectx, const char *imsi)
@@ -326,8 +324,7 @@
 	osmo_prim_init(&prim->oph, SCCP_SAP_USER,
 			OSMO_SCU_PRIM_N_DATA,
 			PRIM_OP_REQUEST, msg);
-	osmo_sccp_user_sap_down(g_scu, &prim->oph);
-	return 0;
+	return osmo_sccp_user_sap_down(g_scu, &prim->oph);
 }
 
 static int iu_grnc_id_parse(struct iu_grnc_id *dst, struct RANAP_GlobalRNC_ID *src)
@@ -467,8 +464,7 @@
 	osmo_prim_init(&prim->oph, SCCP_SAP_USER,
 			OSMO_SCU_PRIM_N_DATA,
 			PRIM_OP_REQUEST, msg);
-	osmo_sccp_user_sap_down(g_scu, &prim->oph);
-	return 0;
+	return osmo_sccp_user_sap_down(g_scu, &prim->oph);
 }
 
 /* Send Iu Release for the given UE connection.

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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I3b7c2296eb8b26f0881cee643b834336daab86ea
Gerrit-Change-Number: 15665
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191003/ac75d974/attachment.htm>


More information about the gerrit-log mailing list