aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim-mbim.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-03-28 18:35:54 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-03-29 10:22:05 +0200
commit9823d9d6f613d33e868352328a7056809996e790 (patch)
tree2956a0ba7bb29540950f7c96314343df2da0aead /src/mm-sim-mbim.c
parent3c4c983642c0d03aa6e509221930179c59aac9b6 (diff)
core: 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/mm-sim-mbim.c')
-rw-r--r--src/mm-sim-mbim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-sim-mbim.c b/src/mm-sim-mbim.c
index 08acf389..3d99c99d 100644
--- a/src/mm-sim-mbim.c
+++ b/src/mm-sim-mbim.c
@@ -97,7 +97,7 @@ simid_subscriber_ready_state_ready (MbimDevice *device,
NULL, /* telephone_numbers_count */
NULL, /* telephone_numbers */
&error))
- g_simple_async_result_set_op_res_gpointer (simple, sim_iccid, (GDestroyNotify)g_free);
+ g_simple_async_result_set_op_res_gpointer (simple, sim_iccid, g_free);
else
g_simple_async_result_take_error (simple, error);
@@ -165,7 +165,7 @@ imsi_subscriber_ready_state_ready (MbimDevice *device,
NULL, /* telephone_numbers_count */
NULL, /* telephone_numbers */
&error))
- g_simple_async_result_set_op_res_gpointer (simple, subscriber_id, (GDestroyNotify)g_free);
+ g_simple_async_result_set_op_res_gpointer (simple, subscriber_id, g_free);
else
g_simple_async_result_take_error (simple, error);