[PATCH] iface-modem: remove unnecessary G_SIMPLE_ASYNC_RESULT() cast

Ben Chan benchan at chromium.org
Thu Oct 24 08:38:16 PDT 2013


This patch removes an unnecessary G_SIMPLE_ASYNC_RESULT() cast of the
'result' field, which is already of type GSimpleAsyncResult, of
InternalLoadUnlockRequiredContext.
---
 src/mm-iface-modem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 433dbac..77c9c65 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -304,7 +304,7 @@ load_unlock_required_ready (MMIfaceModem *self,
     }
 
     /* Got the lock value, return it */
-    g_simple_async_result_set_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (ctx->result),
+    g_simple_async_result_set_op_res_gpointer (ctx->result,
                                                GUINT_TO_POINTER (lock),
                                                NULL);
     internal_load_unlock_required_context_complete_and_free (ctx);
-- 
1.8.4.1



More information about the ModemManager-devel mailing list