]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/path-lookup: remove unnecessary 'if' to help gcc
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jun 2018 06:17:38 +0000 (08:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 08:57:51 +0000 (10:57 +0200)
Fixes #9343.

src/shared/path-lookup.c

index 13ab5310e34cb7962691d018fa6172232ebecb76..42a5b62d5d046ad0925acccb9a38f476a6920441 100644 (file)
@@ -260,7 +260,8 @@ static int acquire_generator_dirs(
                 prefix = tempdir;
         else if (scope == UNIT_FILE_SYSTEM)
                 prefix = "/run/systemd";
-        else if (scope == UNIT_FILE_USER) {
+        else {
+                /* UNIT_FILE_USER */
                 const char *e;
 
                 e = getenv("XDG_RUNTIME_DIR");