aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/assignment_fsm.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-24 17:38:37 +0200
committerHarald Welte <laforge@gnumonks.org>2018-09-26 17:42:37 +0000
commitf06918fc71540eac509fae4101f259b60b328c4c (patch)
tree9c66abf6f5b49a6f87fdf64bd79cb955bd519513 /src/osmo-bsc/assignment_fsm.c
parentbeb74814bf228b413cbb4e8c92be6394cc87851f (diff)
cosmetic: drop param from send_assignment_complete()
After previous patch I8dd561d744d8081b5ac5ffa7635f17ac19bcda45, all callers pass conn->lchan to send_assignment_complete(), so there is no need to pass it separately from conn. Change-Id: I3c038d91a53c81d9fcf4ec62f853b59bb1ecd244
Diffstat (limited to 'src/osmo-bsc/assignment_fsm.c')
-rw-r--r--src/osmo-bsc/assignment_fsm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index a7564e0cd..2410adb43 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -129,7 +129,7 @@ static void on_assignment_failure(struct gsm_subscriber_connection *conn)
}
}
-static void send_assignment_complete(struct gsm_subscriber_connection *conn, struct gsm_lchan *new_lchan)
+static void send_assignment_complete(struct gsm_subscriber_connection *conn)
{
int rc;
struct gsm0808_speech_codec sc;
@@ -139,7 +139,7 @@ static void send_assignment_complete(struct gsm_subscriber_connection *conn, str
int perm_spch = 0;
uint8_t chosen_channel;
struct msgb *resp;
- struct gsm_lchan *lchan = new_lchan;
+ struct gsm_lchan *lchan = conn->lchan;
struct osmo_fsm_inst *fi = conn->fi;
chosen_channel = gsm0808_chosen_channel(lchan->type, lchan->tch_mode);
@@ -207,7 +207,7 @@ static void assignment_success(struct gsm_subscriber_connection *conn)
/* apply LCLS configuration (if any) */
lcls_apply_config(conn);
- send_assignment_complete(conn, conn->lchan);
+ send_assignment_complete(conn);
/* If something went wrong during send_assignment_complete(), the fi will be gone from
* error handling in there. Almost a success, but then again the whole thing failed. */
if (!conn->assignment.fi) {
@@ -348,7 +348,7 @@ void assignment_fsm_start(struct gsm_subscriber_connection *conn, struct gsm_bts
" requested chan_mode=%s; current lchan is %s\n",
gsm48_chan_mode_name(req->chan_mode),
gsm_lchan_name(conn->lchan));
- send_assignment_complete(conn, conn->lchan);
+ send_assignment_complete(conn);
return;
}