machine-pool: simplify return values from setup_machine_directory()

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.
This commit is contained in:
Ivan Shapovalov
2022-12-03 20:31:48 +04:00
parent 0ccfd3564b
commit e9231901a2
+1 -1
View File
@@ -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;
}