cgroup: drop redundant if check
This commit is contained in:
parent
e1e98911a8
commit
48fd01e5f3
|
@ -3621,8 +3621,8 @@ int unit_get_cpuset(Unit *u, CPUSet *cpus, const char *name) {
|
||||||
return r;
|
return r;
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
return -ENODATA;
|
return -ENODATA;
|
||||||
if (r > 0)
|
|
||||||
r = cg_get_attribute("cpuset", u->cgroup_path, name, &v);
|
r = cg_get_attribute("cpuset", u->cgroup_path, name, &v);
|
||||||
if (r == -ENOENT)
|
if (r == -ENOENT)
|
||||||
return -ENODATA;
|
return -ENODATA;
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
|
Loading…
Reference in a new issue