shared/bus-util: fix misleading error handling

set_put()/set_ensure_put() return 0, not -EEXIST, if the entry is already
found in the set. In this case this does not make any difference, but let's
not confuse the reader.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-06-04 17:41:18 +02:00
parent e2ab8e09c8
commit 6cd55d6f74

View file

@ -614,7 +614,7 @@ int bus_message_print_all_properties(
if (found_properties) {
r = set_ensure_put(found_properties, &string_hash_ops, name);
if (r < 0 && r != -EEXIST)
if (r < 0)
return log_oom();
}