mirror of git://git.sysmocom.de/ofono
stk: Remove unneeded check
The agent_remove_source will be canceled as part of the session agent destruction notify.
This commit is contained in:
parent
41017a11f5
commit
8697cbbba8
|
@ -1307,11 +1307,6 @@ static void stk_unregister(struct ofono_atom *atom)
|
|||
struct ofono_modem *modem = __ofono_atom_get_modem(atom);
|
||||
const char *path = __ofono_atom_get_path(atom);
|
||||
|
||||
if (stk->remove_agent_source) {
|
||||
g_source_remove(stk->remove_agent_source);
|
||||
stk->remove_agent_source = 0;
|
||||
}
|
||||
|
||||
if (stk->session_agent)
|
||||
stk_agent_free(stk->session_agent);
|
||||
|
||||
|
|
Loading…
Reference in New Issue