diff options
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 20161ede9d..5b30457a88 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -337,10 +337,8 @@ int session_load(Session *s) { "CONTROLLER", &controller, NULL); - if (r < 0) { - log_error_errno(r, "Failed to read %s: %m", s->state_file); - return r; - } + if (r < 0) + return log_error_errno(r, "Failed to read %s: %m", s->state_file); if (!s->user) { uid_t u; |