mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 05:20:08 +01:00
macros: remove early return from nm_clear_g_signal_handler()
It is valid to call nm_clear_g_signal_handler() with missing @self argument if (and only if) the @id is unspecified as well. Remove the check for @self to get an assertion in case @id is missing *and* @self is invalid. In this case, g_signal_handler_disconnect() will raise a g_critical() for us. Fixes:c33416178f(cherry picked from commit76958f94d4)
This commit is contained in:
parent
23313d711f
commit
6f06ec0aba
1 changed files with 0 additions and 3 deletions
|
|
@ -260,9 +260,6 @@ nm_clear_g_source (guint *id)
|
|||
static inline gboolean
|
||||
nm_clear_g_signal_handler (gpointer self, guint *id)
|
||||
{
|
||||
if (!self)
|
||||
return FALSE;
|
||||
|
||||
if (id && *id) {
|
||||
g_signal_handler_disconnect (self, *id);
|
||||
*id = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue