mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
debug-generator: shorten code a bit
This commit is contained in:
parent
a96e670844
commit
0e85550eb5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user