mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 19:18:09 +02:00
bus_registry_acquire_service: remove unnecessary variable
This commit is contained in:
parent
0f309ae984
commit
eaa1f25746
1 changed files with 2 additions and 5 deletions
|
|
@ -385,7 +385,6 @@ bus_registry_acquire_service (BusRegistry *registry,
|
|||
{
|
||||
dbus_bool_t retval;
|
||||
DBusConnection *old_owner_conn;
|
||||
DBusConnection *current_owner_conn;
|
||||
BusClientPolicy *policy;
|
||||
BusService *service;
|
||||
BusActivation *activation;
|
||||
|
|
@ -510,12 +509,10 @@ bus_registry_acquire_service (BusRegistry *registry,
|
|||
primary_owner = bus_service_get_primary_owner (service);
|
||||
if (primary_owner == NULL)
|
||||
goto out;
|
||||
|
||||
current_owner_conn = primary_owner->conn;
|
||||
|
||||
|
||||
if (old_owner_conn == NULL)
|
||||
{
|
||||
_dbus_assert (current_owner_conn == connection);
|
||||
_dbus_assert (primary_owner->conn == connection);
|
||||
|
||||
*result = DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue