aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-11-09 23:43:01 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-09 23:54:59 +0100
commitfc9449c68838f48506aeddbbaa447842eda33d45 (patch)
tree130c8d6471ffce1126da1164e8311eec030e0645 /src
parentf535cc84c7090ba1340d756ad2b03b13572aeadf (diff)
lchan_fsm_cleanup: drop redundant 'forget_lchan' call
Right below this call, we invoke lchan_reset(), and the first thing it does is gscon_forget_lchan(). Drop this redundant invocation. Change-Id: I503efceb6d34c8df0cdfef3dfc83fa1e61271c47
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bsc/lchan_fsm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/osmo-bsc/lchan_fsm.c b/src/osmo-bsc/lchan_fsm.c
index 915b62aff..0046f5924 100644
--- a/src/osmo-bsc/lchan_fsm.c
+++ b/src/osmo-bsc/lchan_fsm.c
@@ -1343,8 +1343,6 @@ exit_release_handler:
void lchan_fsm_cleanup(struct osmo_fsm_inst *fi, enum osmo_fsm_term_cause cause)
{
struct gsm_lchan *lchan = lchan_fi_lchan(fi);
- if (lchan->conn)
- gscon_forget_lchan(lchan->conn, lchan);
lchan_reset(lchan);
if (lchan->last_error) {
talloc_free(lchan->last_error);