aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-probe.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-port-probe.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-port-probe.c')
-rw-r--r--src/mm-port-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index c6c5897f..cfe0763c 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -1406,7 +1406,7 @@ mm_port_probe_run (MMPortProbe *self,
ctx->at_probing_cancellable_linked = g_cancellable_connect (cancellable,
(GCallback) at_cancellable_cancel,
g_object_ref (ctx->at_probing_cancellable),
- (GDestroyNotify) g_object_unref);
+ g_object_unref);
ctx->source_id = g_idle_add ((GSourceFunc) serial_open_at, self);
return;
}