diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:35:57 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:22:34 +0200 |
commit | 78e6ba5688f80ee30466ef59ed78c78e083c4c55 (patch) | |
tree | eb31c189e0e842e2982b002f415947341cda5706 /libmm-glib/mm-modem-simple.c | |
parent | b225b7a2673d53b6e8dbf6a96e6459592ada6d37 (diff) |
libmm-glib: remove explicit GDestroyNotify cast on g_object_unref
g_object_unref is in form of `void (*)(gpointer)`, which matches the
GDestroyNotify signature. An explicit GDestroyNotify cast on
g_object_unref is thus not needed.
Diffstat (limited to 'libmm-glib/mm-modem-simple.c')
-rw-r--r-- | libmm-glib/mm-modem-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmm-glib/mm-modem-simple.c b/libmm-glib/mm-modem-simple.c index 9338c453..14624995 100644 --- a/libmm-glib/mm-modem-simple.c +++ b/libmm-glib/mm-modem-simple.c @@ -138,7 +138,7 @@ new_bearer_ready (GDBusConnection *connection, else g_simple_async_result_set_op_res_gpointer (ctx->result, bearer, - (GDestroyNotify)g_object_unref); + g_object_unref); connect_context_complete_and_free (ctx); } |