From 9a9638ef2098e11f3496ad51ed2471df869a1986 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 24 Oct 2013 08:38:16 -0700 Subject: [PATCH] iface-modem: remove unnecessary G_SIMPLE_ASYNC_RESULT() cast 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 433dbaca..77c9c657 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);