aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-03-07 03:43:46 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-03-07 04:17:47 +0100
commit864d32c043e92efbc6ffabed88a22ed6fc6facf8 (patch)
tree80d16ca429478e5b487f1ad99473e7e472889fac
parent8e2c6a31c1401b5a6980866ef35d47eb3d8d5ca3 (diff)
gsm_04_11_gsup.c: drop unused conn lookup
An earlier code state used the conn to lookup the transaction, but this is now done by vsub. Hence the conn lookup is not used and not needed. conn is no longer used since 36c44b210059bd75059008913ad05976dfef7d7e, change-Id I093f36d63e671e50e54fc6236e97a777cc6da77b, "transaction: change arguments of trans_find_by_sm_rp_mr()" Change-Id: Ia878d70138c883cb1a1d983516aff83efa6488ce
-rw-r--r--src/libmsc/gsm_04_11_gsup.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libmsc/gsm_04_11_gsup.c b/src/libmsc/gsm_04_11_gsup.c
index 8b1225e..eb092ae 100644
--- a/src/libmsc/gsm_04_11_gsup.c
+++ b/src/libmsc/gsm_04_11_gsup.c
@@ -121,7 +121,6 @@ int gsm411_gsup_mo_handler(struct vlr_subscr *vsub,
struct vlr_instance *vlr;
struct gsm_network *net;
struct gsm_trans *trans;
- struct ran_conn *conn;
const char *msg_name;
bool msg_is_err;
@@ -165,16 +164,6 @@ int gsm411_gsup_mo_handler(struct vlr_subscr *vsub,
if (msg_is_err && !gsup_msg->sm_rp_cause)
goto msg_error;
- /* Attempt to find a DTAP-connection */
- conn = connection_for_subscr(vsub);
- if (!conn) {
- /* FIXME: should we establish it then? */
- LOGP(DLSMS, LOGL_NOTICE, "No connection found for %s, "
- "ignoring %s-%s message...\n", vlr_subscr_name(vsub),
- msg_name, msg_is_err ? "Err" : "Res");
- return -EIO; /* TODO: notify sender about that? */
- }
-
/* Attempt to find DTAP-transaction */
trans = trans_find_by_sm_rp_mr(net, vsub, *(gsup_msg->sm_rp_mr));
if (!trans) {