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 <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to