DBG("network %p", network);
reply = dbus_pending_call_steal_reply(call);
- if (reply == NULL)
- return;
dbus_error_init(&error);
done:
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static int pan_connect(struct connman_network *network)
DBG("network %p", network);
reply = dbus_pending_call_steal_reply(call);
- if (reply == NULL)
- return;
dbus_error_init(&error);
done:
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static int pan_disconnect(struct connman_network *network)
reply = dbus_pending_call_steal_reply(call);
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static int change_powered(DBusConnection *connection, const char *path,
char ident[13];
reply = dbus_pending_call_steal_reply(call);
- if (reply == NULL)
- return;
extract_properties(reply, &parent, &address, NULL, &name,
NULL, NULL, &uuids, NULL);
done:
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static void add_network(struct connman_device *device, const char *path)
DBG("path %s", path);
reply = dbus_pending_call_steal_reply(call);
- if (reply == NULL)
- return;
if (path == NULL)
goto done;
done:
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static void add_adapter(DBusConnection *connection, const char *path)
DBG("");
reply = dbus_pending_call_steal_reply(call);
- if (reply == NULL)
- return;
dbus_error_init(&error);
done:
dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
}
static void unregister_device(gpointer data)