aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-09-04 17:23:35 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-09-04 17:59:59 +0200
commit530ebf90635ea2f652d68934f8d7c0656abc9e05 (patch)
tree72d86b9d0078d3c5b27b98b017e62f3e13d13cb6
parentada9934e90cd12d84085b358758ef782ccc116a4 (diff)
telit: reorder code to keep the bottom-top flow for async methods
-rw-r--r--plugins/telit/mm-broadband-modem-telit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
index f077405c..995ae6a9 100644
--- a/plugins/telit/mm-broadband-modem-telit.c
+++ b/plugins/telit/mm-broadband-modem-telit.c
@@ -1056,6 +1056,14 @@ modem_after_power_up (MMIfaceModem *self,
/*****************************************************************************/
/* Modem power down (Modem interface) */
+static gboolean
+modem_power_down_finish (MMIfaceModem *self,
+ GAsyncResult *res,
+ GError **error)
+{
+ return g_task_propagate_boolean (G_TASK (res), error);
+}
+
static void
telit_modem_power_down_ready (MMBaseModem *self,
GAsyncResult *res,
@@ -1077,14 +1085,6 @@ telit_modem_power_down_ready (MMBaseModem *self,
g_object_unref (task);
}
-static gboolean
-modem_power_down_finish (MMIfaceModem *self,
- GAsyncResult *res,
- GError **error)
-{
- return g_task_propagate_boolean (G_TASK (res), error);
-}
-
static void
modem_power_down (MMIfaceModem *self,
GAsyncReadyCallback callback,