base-modem: remove explicit GDestroyNotify cast on g_object_unref
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.
This commit is contained in:

committed by
Aleksander Morgado

parent
8bde29c9e2
commit
f7cb84788e
@@ -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
|
||||
|
Reference in New Issue
Block a user