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

laforge gerrit-no-reply at lists.osmocom.org
Fri Oct 4 15:50:09 UTC 2019


laforge has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191004/e8df6f19/attachment.htm>


More information about the gerrit-log mailing list