]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: minor simplification
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 16:02:07 +0000 (18:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 16:09:11 +0000 (18:09 +0200)
src/login/logind-session.c

index 6eadfe83d4633c98360b4b5e19f3ab866813944b..1b0d51eb285788d7a1197cbeb47f8afbd6cd1d80 100644 (file)
@@ -735,10 +735,9 @@ int session_start(Session *s, sd_bus_message *properties, sd_bus_error *error) {
         /* Send signals */
         session_send_signal(s, true);
         user_send_changed(s->user, "Display", NULL);
-        if (s->seat) {
-                if (s->seat->active == s)
-                        seat_send_changed(s->seat, "ActiveSession", NULL);
-        }
+
+        if (s->seat && s->seat->active == s)
+                seat_send_changed(s->seat, "ActiveSession", NULL);
 
         return 0;
 }