logind: fix emission of PropertiesChanged for users

The same as parent commit, but users. This is the third and last
foo_object_find() function in logind, so I think that this particular
family of bugs is finally squashed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-10-21 15:07:36 +02:00
parent 8cc64c2a36
commit 8163b9f900
2 changed files with 0 additions and 3 deletions

View File

@ -163,7 +163,6 @@ int manager_get_user_from_creds(Manager *m, sd_bus_message *message, uid_t uid,
User *user;
assert(m);
assert(message);
assert(ret);
if (!uid_is_valid(uid))

View File

@ -244,8 +244,6 @@ int user_object_find(sd_bus *bus, const char *path, const char *interface, void
sd_bus_message *message;
message = sd_bus_get_current_message(bus);
if (!message)
return 0;
r = manager_get_user_from_creds(m, message, UID_INVALID, error, &user);
if (r == -ENXIO) {