From 868b4489f9c9fafbaa5a88707f57a408ec00a01c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 3 Aug 2011 14:31:56 +0200 Subject: mbm: Don't bother with NULL checking for SIM state query free --- plugins/mbm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/mbm.c') diff --git a/plugins/mbm.c b/plugins/mbm.c index db70f168..04e6623e 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -91,12 +91,12 @@ static void mbm_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup potential SIM state polling */ + at_util_sim_state_query_free(data->sim_state_query); + g_at_chat_unref(data->data_port); g_at_chat_unref(data->modem_port); - if (data->sim_state_query) - at_util_sim_state_query_free(data->sim_state_query); - g_free(data); } -- cgit v1.2.3