summaryrefslogtreecommitdiff
path: root/src/user-sessions/user-sessions.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-08 23:03:38 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 08:20:20 +0200
commitece174c5439021e32ebcc858842de9586072c006 (patch)
treeb469235d6c4b195a6b53c7c5d97c0e516bfb4bc6 /src/user-sessions/user-sessions.c
parent76ef789d264f9eb7d7624b994aa6eead1dacfac4 (diff)
tree-wide: drop {} from one-line if blocks
Patch via coccinelle.
Diffstat (limited to 'src/user-sessions/user-sessions.c')
-rw-r--r--src/user-sessions/user-sessions.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/user-sessions/user-sessions.c b/src/user-sessions/user-sessions.c
index 4dd4e87b86..7c736c44d2 100644
--- a/src/user-sessions/user-sessions.c
+++ b/src/user-sessions/user-sessions.c
@@ -42,10 +42,9 @@ int main(int argc, char*argv[]) {
if (streq(argv[1], "start")) {
int r = 0;
- if (unlink("/run/nologin") < 0 && errno != ENOENT) {
+ if (unlink("/run/nologin") < 0 && errno != ENOENT)
r = log_error_errno(errno,
"Failed to remove /run/nologin file: %m");
- }
if (unlink("/etc/nologin") < 0 && errno != ENOENT) {
/* If the file doesn't exist and /etc simply