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
This commit is contained in:
parent
f535cc84c7
commit
fc9449c688
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue