summaryrefslogtreecommitdiff
path: root/src/cryptsetup/cryptsetup-generator.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-11-27 12:55:37 +0100
committerGitHub <noreply@github.com>2020-11-27 12:55:37 +0100
commit1526e55f6cc7e741dae28b240bd682fd4e2bed79 (patch)
tree14eabe3cbaab7cfcc3fd42857ee973e100759c98 /src/cryptsetup/cryptsetup-generator.c
parentdca63b5b46f36989f69b154d7af3b4da433ae59e (diff)
parent61c26ca87f510e9fb871093e205a33f83afabbfd (diff)
downloadsystemd-1526e55f6cc7e741dae28b240bd682fd4e2bed79.tar.gz
Merge pull request #17732 from yuwata/core-use-synthetic_errno
core,network: use SYNTHETIC_ERRNO() macro
Diffstat (limited to 'src/cryptsetup/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup/cryptsetup-generator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 68c73499ce..0ae8ab35aa 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -445,14 +445,13 @@ static int create_disk(
fprintf(f, "After=%s\n"
"Requires=%s\n", unit, unit);
- if (umount_unit) {
+ if (umount_unit)
fprintf(f,
"Wants=%s\n"
"Before=%s\n",
umount_unit,
umount_unit
);
- }
}
if (!nofail)