DBusError *error)
{
DBusConnection *conn;
- gboolean result;
conn = dbus_bus_get(type, error);
if (conn == NULL)
return NULL;
- result = setup_bus(conn, name, error);
-
- if (result == FALSE) {
+ if (setup_bus(conn, name, error) == FALSE) {
dbus_connection_unref(conn);
return NULL;
}
DBusError *error)
{
DBusConnection *conn;
- gboolean result;
conn = dbus_bus_get_private(type, error);
if (conn == NULL)
return NULL;
- result = setup_bus(conn, name, error);
-
- if (result == FALSE) {
+ if (setup_bus(conn, name, error) == FALSE) {
dbus_connection_unref(conn);
return NULL;
}