mbm: Don't bother with NULL checking for SIM state query free

This commit is contained in:
Marcel Holtmann 2011-08-03 14:31:56 +02:00
parent 0d460ce2a3
commit 868b4489f9
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}