diff options
authorPhilipp Maier <pmaier@sysmocom.de>2018-09-05 14:49:12 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2018-09-06 11:34:28 +0000
commit5aac651ceee572e995d966e207d3b39b0d2ec014 (patch)
parent9134d330f6ae76f23774c67d4cd787f945ce971b (diff)
assignment: remove unnecessary call to gsm0808_speech_codec_from_chan_type()
There is a function call to gsm0808_speech_codec_from_chan_type() after an if construct that checks if we need voice and if we need it if it is related to an AoIP connection. However, at the moment we call gsm0808_speech_codec_from_chan_type() all the time, even when just figured out that we don't need to. Presumably this is a refactory leftover. Lets remove the excess function call. Change-Id: I34d9281944b36cd89ad8e1c5774f0ea80fdfadc8
1 files changed, 0 insertions, 2 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index 41615acd4..e1da45bc4 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -171,8 +171,6 @@ static void send_assignment_complete(struct gsm_subscriber_connection *conn, str
/* FIXME: AMR codec configuration must be derived from lchan1! */
- gsm0808_speech_codec_from_chan_type(&sc, perm_spch);
resp = gsm0808_create_ass_compl(lchan->abis_ip.ass_compl.rr_cause,
lchan->encr.alg_id, perm_spch,