summaryrefslogtreecommitdiff
path: root/src/console/consoled-manager.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 17:34:26 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 17:34:26 +0100
commiteb56eb9b40950f1edcffdb7313f8de4f8572a6d5 (patch)
tree6e6c04129d1bb12b5ff3fcfbc26a294766079e0e /src/console/consoled-manager.c
parentc33b329709ebe2755181980a050d02ec7c81ed87 (diff)
treewide: simplify log_*_errno(r,...) immediately followed by "return r"
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) {