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

Aleksander Morgado aleksander at lanedo.com
Thu Oct 24 17:42:30 CEST 2013


On 10/24/2013 05:38 PM, Ben Chan wrote:
> This patch removes an unnecessary G_SIMPLE_ASYNC_RESULT() cast of the
> 'result' field, which is already of type GSimpleAsyncResult, of
> InternalLoadUnlockRequiredContext.
> ---

Pushed, thanks.

>  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);
> 


-- 
Aleksander


More information about the ModemManager-devel mailing list