From 8697cbbba8ad9f8387f90b0af1aebd6650eba14f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 30 Jul 2010 18:50:38 -0500 Subject: [PATCH] stk: Remove unneeded check The agent_remove_source will be canceled as part of the session agent destruction notify. --- src/stk.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stk.c b/src/stk.c index 871888d8..41464437 100644 --- a/src/stk.c +++ b/src/stk.c @@ -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);