From: Zbigniew Jędrzejewski-Szmek Date: Wed, 20 Jun 2018 06:17:38 +0000 (+0200) Subject: shared/path-lookup: remove unnecessary 'if' to help gcc X-Git-Tag: v239~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c47d5090609f60fda71291a42305c5e7ffca5d1;p=thirdparty%2Fsystemd.git shared/path-lookup: remove unnecessary 'if' to help gcc Fixes #9343. --- diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c index 13ab5310e34..42a5b62d5d0 100644 --- a/src/shared/path-lookup.c +++ b/src/shared/path-lookup.c @@ -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");