mirror of git://git.sysmocom.de/ofono
mbm: Don't bother with NULL checking for SIM state query free
This commit is contained in:
parent
0d460ce2a3
commit
868b4489f9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue