aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmi-firmware-update/qfu-operation-update.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-03-28 18:48:45 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-03-29 10:43:42 +0200
commite35eb212d12c18e111b2ff9eb7580cc96e24f4dc (patch)
tree7c531095f97dc98844d190af4ad6132e23c626c9 /src/qmi-firmware-update/qfu-operation-update.c
parent07c9b38824a303cfb8132e2a731e2dc2936a2179 (diff)
downloadexternal_libqmi-e35eb212d12c18e111b2ff9eb7580cc96e24f4dc.zip
external_libqmi-e35eb212d12c18e111b2ff9eb7580cc96e24f4dc.tar.gz
external_libqmi-e35eb212d12c18e111b2ff9eb7580cc96e24f4dc.tar.bz2
qmi-firmware-update: 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/qmi-firmware-update/qfu-operation-update.c')
-rw-r--r--src/qmi-firmware-update/qfu-operation-update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmi-firmware-update/qfu-operation-update.c b/src/qmi-firmware-update/qfu-operation-update.c
index af061e9..02f5ab1 100644
--- a/src/qmi-firmware-update/qfu-operation-update.c
+++ b/src/qmi-firmware-update/qfu-operation-update.c
@@ -104,7 +104,7 @@ operation_update_run (QfuUpdater *updater,
/* Run! */
qfu_updater_run (updater, image_file_list, operation.cancellable, (GAsyncReadyCallback) run_ready, &operation);
- g_list_free_full (image_file_list, (GDestroyNotify) g_object_unref);
+ g_list_free_full (image_file_list, g_object_unref);
g_main_loop_run (operation.loop);
if (operation.cancellable)