diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:23:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:59:51 +0200 |
commit | 1f6b411372076426c0faf0bb350437fb4d82931f (patch) | |
tree | 32a52b3e2bb04731cc857b738e989531a4144516 /src/debug-generator | |
parent | 94c156cd452424ea59931920df2454d9da7cb774 (diff) |
tree-wide: update empty-if coccinelle script to cover empty-while and more
Let's also clean up single-line while and for blocks.
Diffstat (limited to 'src/debug-generator')
-rw-r--r-- | src/debug-generator/debug-generator.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/debug-generator/debug-generator.c b/src/debug-generator/debug-generator.c index 3ae9634414..8b29e8fd09 100644 --- a/src/debug-generator/debug-generator.c +++ b/src/debug-generator/debug-generator.c @@ -95,11 +95,10 @@ static int generate_mask_symlinks(void) { if (!p) return log_oom(); - if (symlink("/dev/null", p) < 0) { + if (symlink("/dev/null", p) < 0) r = log_error_errno(errno, "Failed to create mask symlink %s: %m", p); - } } return r; @@ -125,11 +124,10 @@ static int generate_wants_symlinks(void) { mkdir_parents_label(p, 0755); - if (symlink(f, p) < 0) { + if (symlink(f, p) < 0) r = log_error_errno(errno, "Failed to create wants symlink %s: %m", p); - } } return r; |