summaryrefslogtreecommitdiffstats
path: root/bus/services.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/services.c')
-rw-r--r--bus/services.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bus/services.c b/bus/services.c
index fc749d0d..5148f1f1 100644
--- a/bus/services.c
+++ b/bus/services.c
@@ -286,12 +286,8 @@ bus_registry_acquire_service (BusRegistry *registry,
goto out;
}
- policy = bus_connection_get_policy (connection, error);
- if (policy == NULL)
- {
- _DBUS_ASSERT_ERROR_IS_SET (error);
- goto out;
- }
+ policy = bus_connection_get_policy (connection);
+ _dbus_assert (policy != NULL);
if (!bus_client_policy_check_can_own (policy, connection,
service_name))