From 530ebf90635ea2f652d68934f8d7c0656abc9e05 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 4 Sep 2017 17:23:35 +0200 Subject: [PATCH] telit: reorder code to keep the bottom-top flow for async methods --- plugins/telit/mm-broadband-modem-telit.c | 16 ++++++++-------- 1 file 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,