1
0
mirror of https://github.com/systemd/systemd synced 2024-07-09 04:26:06 +00:00

debug-generator: shorten code a bit

This commit is contained in:
Yu Watanabe 2022-07-02 07:32:16 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent a96e670844
commit 0e85550eb5

View 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;