diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:48:45 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:43:42 +0200 |
commit | e35eb212d12c18e111b2ff9eb7580cc96e24f4dc (patch) | |
tree | 7c531095f97dc98844d190af4ad6132e23c626c9 /src/qmi-firmware-update/qfu-device-selection.c | |
parent | 07c9b38824a303cfb8132e2a731e2dc2936a2179 (diff) | |
download | libqmi-e35eb212d12c18e111b2ff9eb7580cc96e24f4dc.tar.gz |
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-device-selection.c')
-rw-r--r-- | src/qmi-firmware-update/qfu-device-selection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmi-firmware-update/qfu-device-selection.c b/src/qmi-firmware-update/qfu-device-selection.c index a367548c..22c2063f 100644 --- a/src/qmi-firmware-update/qfu-device-selection.c +++ b/src/qmi-firmware-update/qfu-device-selection.c @@ -74,7 +74,7 @@ device_selection_get_single (QfuDeviceSelection *self, preferred_selection = g_object_ref (l->data); g_free (path); } - g_list_free_full (list, (GDestroyNotify) g_object_unref); + g_list_free_full (list, g_object_unref); if (preferred_selection) { path = g_file_get_path (preferred_selection); @@ -154,7 +154,7 @@ device_selection_get_multiple (QfuDeviceSelection *self, path = g_file_get_path (preferred_selection); g_debug ("[qfu,device-selection] using only preferred device: %s", path); g_free (path); - g_list_free_full (list, (GDestroyNotify) g_object_unref); + g_list_free_full (list, g_object_unref); return g_list_append (NULL, preferred_selection); } @@ -212,7 +212,7 @@ wait_for_device_ready (gpointer unused, if (!file) g_task_return_error (task, error); else - g_task_return_pointer (task, file, (GDestroyNotify) g_object_unref); + g_task_return_pointer (task, file, g_object_unref); g_object_unref (task); } |