projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ccfd35
)
machine-pool: simplify return values from setup_machine_directory()
author
Ivan Shapovalov
<intelfx@intelfx.name>
Sat, 3 Dec 2022 16:31:36 +0000
(20:31 +0400)
committer
Ivan Shapovalov
<intelfx@intelfx.name>
Sat, 3 Dec 2022 16:31:48 +0000
(20:31 +0400)
Non-negative return values of setup_machine_directory() were never used
and never had clear meaning, so do not distinguish between various
non-error conditions and just return 0 in all cases.
src/shared/machine-pool.c
patch
|
blob
|
history
diff --git
a/src/shared/machine-pool.c
b/src/shared/machine-pool.c
index 1f0b0b47303e16f084ae08395ca9eb25c05f3b71..b495d4d79fdb9287e6358a07e95cea92f008a357 100644
(file)
--- a/
src/shared/machine-pool.c
+++ b/
src/shared/machine-pool.c
@@
-41,5
+41,5
@@
int setup_machine_directory(sd_bus_error *error) {
if (r < 0)
log_warning_errno(r, "Failed to set up default quota hierarchy for /var/lib/machines, ignoring: %m");
- return
1
;
+ return
0
;
}