diff options
-rw-r--r-- | src/login/logind-session.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index fe5fa27be1..fa8b5157e8 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -360,8 +360,6 @@ int session_load(Session *s) { } int session_activate(Session *s) { - int r; - assert(s); assert(s->user); @@ -376,11 +374,7 @@ int session_activate(Session *s) { assert(seat_is_vtconsole(s->seat)); - r = chvt(s->vtnr); - if (r < 0) - return r; - - return seat_set_active(s->seat, s); + return chvt(s->vtnr); } static int session_link_x11_socket(Session *s) { |