diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:48:44 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:43:31 +0200 |
commit | 07c9b38824a303cfb8132e2a731e2dc2936a2179 (patch) | |
tree | 9996015c825eafc5611153485eb9ef8de09986b0 /src/libqmi-glib | |
parent | 9f6e7659c4c4f0d5eab348bd6c7f3b0c59904dc4 (diff) | |
download | external_libqmi-07c9b38824a303cfb8132e2a731e2dc2936a2179.zip external_libqmi-07c9b38824a303cfb8132e2a731e2dc2936a2179.tar.gz external_libqmi-07c9b38824a303cfb8132e2a731e2dc2936a2179.tar.bz2 |
libqmi-lib: remove explicit GDestroyNotify cast on g_free / g_object_unref
g_free and g_object_unref are in form of `void (*)(gpointer)`, which
matches the GDestroyNotify signature. An explicit GDestroyNotify cast on
g_free and g_object_unref is thus not needed.
Diffstat (limited to 'src/libqmi-glib')
-rw-r--r-- | src/libqmi-glib/qmi-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c index ff6a1d7..a3dee23 100644 --- a/src/libqmi-glib/qmi-device.c +++ b/src/libqmi-glib/qmi-device.c @@ -950,7 +950,7 @@ build_client_object (AllocateClientContext *ctx) /* Client created and registered, complete successfully */ g_simple_async_result_set_op_res_gpointer (ctx->result, client, - (GDestroyNotify)g_object_unref); + g_object_unref); allocate_client_context_complete_and_free (ctx); } |