confile: cleanup set_config_cgroup_relative()

parent ee91fa06
......@@ -1822,8 +1822,8 @@ static int set_config_cgroup_relative(const char *key, const char *value,
return clr_config_cgroup_relative(key, lxc_conf, NULL);
ret = lxc_safe_uint(value, &converted);
if (ret < 0)
return -ret;
if (ret)
return ret;
if (converted == 1) {
lxc_conf->cgroup_meta.relative = true;
......@@ -1835,7 +1835,7 @@ static int set_config_cgroup_relative(const char *key, const char *value,
return 0;
}
return -EINVAL;
return ret_errno(EINVAL);
}
static bool parse_limit_value(const char **value, rlim_t *res)
......
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