mirror of git://git.sysmocom.de/ofono
Fix: Remove easy uses of g_at_chat_shutdown
This commit is contained in:
parent
f9b2e5cf5a
commit
244ea076cc
|
@ -203,7 +203,6 @@ static void cfun_set_on_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < NUM_DLC; i++) {
|
||||
g_at_chat_shutdown(data->dlcs[i]);
|
||||
g_at_chat_unref(data->dlcs[i]);
|
||||
data->dlcs[i] = NULL;
|
||||
}
|
||||
|
@ -410,7 +409,6 @@ static int calypso_disable(struct ofono_modem *modem)
|
|||
DBG("");
|
||||
|
||||
for (i = 0; i < NUM_DLC; i++) {
|
||||
g_at_chat_shutdown(data->dlcs[i]);
|
||||
g_at_chat_unref(data->dlcs[i]);
|
||||
data->dlcs[i] = NULL;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,6 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
g_at_chat_unref(data->chat);
|
||||
data->chat = NULL;
|
||||
|
||||
|
|
|
@ -165,7 +165,6 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->control);
|
||||
g_at_chat_unref(data->control);
|
||||
data->control = NULL;
|
||||
|
||||
|
@ -185,7 +184,6 @@ static int hso_disable(struct ofono_modem *modem)
|
|||
g_at_chat_cancel_all(data->control);
|
||||
g_at_chat_unregister_all(data->control);
|
||||
|
||||
g_at_chat_shutdown(data->app);
|
||||
g_at_chat_unref(data->app);
|
||||
data->app = NULL;
|
||||
|
||||
|
|
|
@ -135,7 +135,6 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
g_at_chat_unref(data->chat);
|
||||
data->chat = NULL;
|
||||
|
||||
|
|
|
@ -253,11 +253,9 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->modem_port);
|
||||
g_at_chat_unref(data->modem_port);
|
||||
data->modem_port = NULL;
|
||||
|
||||
g_at_chat_shutdown(data->data_port);
|
||||
g_at_chat_unref(data->data_port);
|
||||
data->data_port = NULL;
|
||||
|
||||
|
|
|
@ -126,7 +126,6 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
g_at_chat_unref(data->chat);
|
||||
data->chat = NULL;
|
||||
|
||||
|
|
|
@ -261,8 +261,6 @@ static int phonesim_disable(struct ofono_modem *modem)
|
|||
|
||||
DBG("%p", modem);
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
|
||||
g_at_chat_unref(data->chat);
|
||||
data->chat = NULL;
|
||||
|
||||
|
|
|
@ -180,7 +180,6 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("");
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
g_at_chat_unref(data->chat);
|
||||
data->chat = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue