cgroups: adhere to boolean return

parent e1141de4
...@@ -1194,11 +1194,9 @@ static bool cgroup_tree_create(struct cgroup_ops *ops, struct lxc_conf *conf, ...@@ -1194,11 +1194,9 @@ static bool cgroup_tree_create(struct cgroup_ops *ops, struct lxc_conf *conf,
* line, which is not possible once a subdirectory has been * line, which is not possible once a subdirectory has been
* created. * created.
*/ */
if (string_in_list(h->controllers, "devices")) { if (string_in_list(h->controllers, "devices") &&
ret = ops->setup_limits_legacy(ops, conf, true); !ops->setup_limits_legacy(ops, conf, true))
if (ret < 0) return log_error(false, "Failed to setup legacy device limits");
return ret;
}
} }
ret = mkdir_eexist_on_last(path, 0755); ret = mkdir_eexist_on_last(path, 0755);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment