summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c
index 390b4b2885..25abcbcf80 100644
--- a/src/login/logind-acl.c
+++ b/src/login/logind-acl.c
@@ -275,9 +275,9 @@ int devnode_acl_all(struct udev *udev,
log_debug("Found static node %s for seat %s", n, seat);
r = set_put(nodes, n);
- if (0 && r < 0 && r != -EEXIST) {
+ if (r < 0 && r != -EEXIST)
goto finish;
- } else
+ else
r = 0;
}
}