summaryrefslogtreecommitdiffstats
path: root/src/debug-generator/debug-generator.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-02 00:32:16 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-02 12:20:14 +0200
commit0e85550eb5a09e582671f5774a3f7e768c7ae8a0 (patch)
treec1187a841f42d8e11d6afddab37927da215b0095 /src/debug-generator/debug-generator.c
parentMerge pull request #23883 from yuwata/pid1-do-not-filter-out-systemd-unit (diff)
downloadsystemd-0e85550eb5a09e582671f5774a3f7e768c7ae8a0.tar.xz
systemd-0e85550eb5a09e582671f5774a3f7e768c7ae8a0.zip
debug-generator: shorten code a bit
Diffstat (limited to '')
-rw-r--r--src/debug-generator/debug-generator.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/debug-generator/debug-generator.c b/src/debug-generator/debug-generator.c
index e2e1df5715..cf638fcc56 100644
--- a/src/debug-generator/debug-generator.c
+++ b/src/debug-generator/debug-generator.c
@@ -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;