Harald Welte has submitted this change and it was merged.

Change subject: mgcp: remove unused variable
......................................................................


mgcp: remove unused variable

The function handle_error asserts mgcp_ctx->conn to be non null,
but it does not access it otherwise.

remove unused variable conn

Change-Id: I09851c957395d1ddb2f9471b99ffc091bc250404
---
M src/osmo-bsc/osmo_bsc_mgcp.c
1 file changed, 0 insertions(+), 4 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/osmo_bsc_mgcp.c b/src/osmo-bsc/osmo_bsc_mgcp.c
index aa008a8..f0c31df 100644
--- a/src/osmo-bsc/osmo_bsc_mgcp.c
+++ b/src/osmo-bsc/osmo_bsc_mgcp.c
@@ -151,12 +151,8 @@
 static void handle_error(struct mgcp_ctx *mgcp_ctx, enum int_cause_code cause)
 {
        struct osmo_fsm_inst *fi;
-       struct osmo_bsc_sccp_con *conn;
 
        OSMO_ASSERT(mgcp_ctx);
-       conn = mgcp_ctx->conn;
-       OSMO_ASSERT(conn);
-
        fi = mgcp_ctx->fsm;
        OSMO_ASSERT(fi);
 

-- 
To view, visit https://gerrit.osmocom.org/4746
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I09851c957395d1ddb2f9471b99ffc091bc250404
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to