]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: drop unnecessary braces
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Oct 2017 19:24:32 +0000 (21:24 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Oct 2017 15:14:05 +0000 (17:14 +0200)
src/login/logind-user.c

index dcf367e22d1e4d21219617f536115b8d8aec37e5..a90db3b33c9da571cf1690f1275fc441271339e6 100644 (file)
@@ -425,12 +425,11 @@ static int user_start_service(User *u) {
                         u->service,
                         &error,
                         &job);
-        if (r < 0) {
+        if (r < 0)
                 /* we don't fail due to this, let's try to continue */
                 log_error_errno(r, "Failed to start user service, ignoring: %s", bus_error_message(&error, r));
-        } else {
+        else
                 u->service_job = job;
-        }
 
         return 0;
 }