aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-07-03 11:23:31 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:47 +0200
commit17d1463465af2cd3ada397c2a9ec6aaf449b7334 (patch)
tree3b1e51d4d84ff61d009ab4e611bfcbdf16cc014e
parentc808db4afc664fa9740852ced79d05986efa0492 (diff)
osmo-msc: remove orphanned struct members
-rw-r--r--src/libmsc/a_iface.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libmsc/a_iface.c b/src/libmsc/a_iface.c
index d7ec6cb8..f19e9d53 100644
--- a/src/libmsc/a_iface.c
+++ b/src/libmsc/a_iface.c
@@ -53,8 +53,6 @@ static struct gsm_network *gsm_network = NULL;
* primitives */
struct bsc_conn {
struct llist_head list;
- struct osmo_sccp_addr called_addr; /* BSC (remote) */
- struct osmo_sccp_addr calling_addr; /* MSC (local) */
uint32_t conn_id; /* Connection identifier */
};
@@ -63,16 +61,13 @@ struct bsc_conn {
static LLIST_HEAD(active_connections);
/* Record info of a new active connection in the active connection list */
-static void record_bsc_con(void *ctx, struct osmo_sccp_addr *called_addr, struct osmo_sccp_addr *calling_addr,
- uint32_t conn_id)
+static void record_bsc_con(void *ctx, uint32_t conn_id)
{
struct bsc_conn *conn;
conn = talloc_zero(ctx, struct bsc_conn);
OSMO_ASSERT(conn);
- memcpy(&conn->called_addr, called_addr, sizeof(*called_addr));
- memcpy(&conn->calling_addr, calling_addr, sizeof(*calling_addr));
conn->conn_id = conn_id;
llist_add_tail(&conn->list, &active_connections);
@@ -476,8 +471,7 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu)
} else
LOGP(DMSC, LOGL_DEBUG, "N-CONNECT.ind(%u)\n", scu_prim->u.connect.conn_id);
- record_bsc_con(scu, &scu_prim->u.connect.calling_addr, &scu_prim->u.connect.called_addr,
- scu_prim->u.connect.conn_id);
+ record_bsc_con(scu, scu_prim->u.connect.conn_id);
break;
case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_INDICATION):