]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
debug-generator: shorten code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Jul 2022 22:32:16 +0000 (07:32 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Jul 2022 10:20:14 +0000 (12:20 +0200)
src/debug-generator/debug-generator.c

index e2e1df57151ea0519f5edfc6cc557fff40fc5479..cf638fcc56667d6f4a530b1935c2c5d7ab0dd90c 100644 (file)
@@ -91,9 +91,6 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
 static int generate_mask_symlinks(void) {
         int r = 0;
 
-        if (strv_isempty(arg_mask))
-                return 0;
-
         STRV_FOREACH(u, arg_mask) {
                 _cleanup_free_ char *p = NULL;
 
@@ -113,9 +110,6 @@ static int generate_mask_symlinks(void) {
 static int generate_wants_symlinks(void) {
         int r = 0;
 
-        if (strv_isempty(arg_wants))
-                return 0;
-
         STRV_FOREACH(u, arg_wants) {
                 _cleanup_free_ char *p = NULL, *f = NULL;
                 const char *target;