aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmi-firmware-update/qfu-udev-helpers.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-udev-helpers.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-udev-helpers.c')
-rw-r--r--src/qmi-firmware-update/qfu-udev-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmi-firmware-update/qfu-udev-helpers.c b/src/qmi-firmware-update/qfu-udev-helpers.c
index 3412f46..7524dc5 100644
--- a/src/qmi-firmware-update/qfu-udev-helpers.c
+++ b/src/qmi-firmware-update/qfu-udev-helpers.c
@@ -303,7 +303,7 @@ qfu_udev_helper_find_by_device_info (guint16 vid,
GString *match_str;
gchar *sysfs_path = NULL;
- sysfs_paths = g_ptr_array_new_with_free_func ((GDestroyNotify) g_free);
+ sysfs_paths = g_ptr_array_new_with_free_func (g_free);
udev = g_udev_client_new (NULL);
match_str = g_string_new ("");