From fc9449c68838f48506aeddbbaa447842eda33d45 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 9 Nov 2018 23:43:01 +0100 Subject: 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 --- src/osmo-bsc/lchan_fsm.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/osmo-bsc/lchan_fsm.c') 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); -- cgit v1.2.3