[PATCH] base-modem: remove explicit GDestroyNotify cast on g_object_unref
Ben Chan
benchan at chromium.org
Fri Oct 5 17:49:05 UTC 2018
g_object_unref is in form of `void (*)(gpointer)`, which matches the
GDestroyNotify signature. An explicit GDestroyNotify cast on
g_object_unref is thus not needed.
---
src/mm-base-modem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mm-base-modem.c b/src/mm-base-modem.c
index d748b374..8ac52d1b 100644
--- a/src/mm-base-modem.c
+++ b/src/mm-base-modem.c
@@ -379,7 +379,7 @@ disable_ready (MMBaseModem *self,
}
g_clear_error (&error);
- g_list_free_full (disable_tasks, (GDestroyNotify)g_object_unref);
+ g_list_free_full (disable_tasks, g_object_unref);
}
void
@@ -439,7 +439,7 @@ enable_ready (MMBaseModem *self,
}
g_clear_error (&error);
- g_list_free_full (enable_tasks, (GDestroyNotify)g_object_unref);
+ g_list_free_full (enable_tasks, g_object_unref);
}
void
--
2.19.0.605.g01d371f741-goog
More information about the ModemManager-devel
mailing list