mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
logind-session-dbus: drop unneeded unref_and_replace
If there's pending s->upgrade_message, we already return early above.
This commit is contained in:
@@ -451,7 +451,7 @@ static int method_set_class(sd_bus_message *message, void *userdata, sd_bus_erro
|
||||
|
||||
session_set_class(s, class);
|
||||
|
||||
unref_and_replace_full(s->upgrade_message, message, sd_bus_message_ref, sd_bus_message_unref);
|
||||
s->upgrade_message = sd_bus_message_ref(message);
|
||||
|
||||
r = session_send_upgrade_reply(s, /* error= */ NULL);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user