diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-16 19:10:41 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-19 16:57:42 +0200 |
commit | 3d3e5afb5239ac5a1f9b8d7d4055623876c7e2ce (patch) | |
tree | 223144226977123ea99d9e57dd0359b9cc83d395 | |
parent | 2b52ac5dbd63f1511d420f339151b5aa0daec136 (diff) |
ipaccess_close(): No need to lookup already available struct e1i_ts
Change-Id: I54a69cad5adc3df3f95dd51e00ea68bb04ba9963
-rw-r--r-- | src/input/ipaccess.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 1b8d8d0..94d2baf 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -452,15 +452,11 @@ static void ipaccess_close(struct e1inp_sign_link *sign_link) struct e1inp_ts *e1i_ts = sign_link->ts; struct osmo_fd *bfd = &e1i_ts->driver.ipaccess.fd; struct e1inp_line *line = e1i_ts->line; + struct osmo_fsm_inst *ka_fsm = e1i_ts->driver.ipaccess.ka_fsm; - /* line might not exist if != bsc||bts */ - if (line) { - /* depending on caller the fsm might be dead */ - struct osmo_fsm_inst* ka_fsm = ipaccess_line_ts(bfd, line)->driver.ipaccess.ka_fsm; - if (ka_fsm) - ipa_keepalive_fsm_stop(ka_fsm); - - } + /* depending on caller the fsm might be dead */ + if (ka_fsm) + ipa_keepalive_fsm_stop(ka_fsm); e1inp_int_snd_event(e1i_ts, sign_link, S_L_INP_TEI_DN); /* the first e1inp_sign_link_destroy call closes the socket. */ |