cgroup: drop redundant if check

This commit is contained in:
Lennart Poettering 2020-01-13 20:11:56 +01:00
parent e1e98911a8
commit 48fd01e5f3
1 changed files with 2 additions and 2 deletions

View File

@ -3621,8 +3621,8 @@ int unit_get_cpuset(Unit *u, CPUSet *cpus, const char *name) {
return r;
if (r == 0)
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)
return -ENODATA;
if (r < 0)