summaryrefslogtreecommitdiff
path: root/src/console/consoled-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/consoled-manager.c')
-rw-r--r--src/console/consoled-manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/console/consoled-manager.c b/src/console/consoled-manager.c
index 0eac7ae78a..9dd62f04a0 100644
--- a/src/console/consoled-manager.c
+++ b/src/console/consoled-manager.c
@@ -141,11 +141,9 @@ static int manager_sysview_session_add(Manager *m, sysview_event *event) {
int r;
r = sysview_session_take_control(session);
- if (r < 0) {
- log_error_errno(r, "Cannot request session control on '%s': %m",
- sysview_session_get_name(session));
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Cannot request session control on '%s': %m",
+ sysview_session_get_name(session));
r = session_new(&s, m, session);
if (r < 0) {