diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-09-21 16:01:14 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-22 07:17:27 +0200 |
commit | 38288f0bb843bf4c0ad7aacea5c81254b2d7d00b (patch) | |
tree | 70d105084e2bfad9645cb22a36264768cd0b2c13 /src/nspawn/nspawn-mount.c | |
parent | 1697a28567628ba0c2cb69ab36a7c80e66c01aa0 (diff) | |
download | systemd-38288f0bb843bf4c0ad7aacea5c81254b2d7d00b.tar.gz |
tree-wide: various code-formatting improvements
Reported/found by Coccinelle
Diffstat (limited to 'src/nspawn/nspawn-mount.c')
-rw-r--r-- | src/nspawn/nspawn-mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c index 140df4e16b..2f842754a4 100644 --- a/src/nspawn/nspawn-mount.c +++ b/src/nspawn/nspawn-mount.c @@ -703,8 +703,9 @@ static int parse_mount_bind_options(const char *options, unsigned long *mount_fl else if (streq(word, "norbind")) flags &= ~MS_REC; else { - log_error("Invalid bind mount option: %s", word); - return -EINVAL; + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), + "Invalid bind mount option: %s", + word); } } |