From e35eb212d12c18e111b2ff9eb7580cc96e24f4dc Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Tue, 28 Mar 2017 18:48:45 -0700 Subject: 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. --- src/qmi-firmware-update/qfu-operation-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmi-firmware-update/qfu-operation-update.c') 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) -- cgit v1.1