diff options
Diffstat (limited to 'src/cgroup.c')
-rw-r--r-- | src/cgroup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cgroup.c b/src/cgroup.c index 64082d0dc6..392736f987 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -404,17 +404,16 @@ char *cgroup_bonding_to_string(CGroupBonding *b) { pid_t cgroup_bonding_search_main_pid(CGroupBonding *b) { FILE *f; pid_t pid = 0, npid; - int r; assert(b); if (!b->ours) return 0; - if ((r = cg_enumerate_processes(b->controller, b->path, &f)) < 0) + if (cg_enumerate_processes(b->controller, b->path, &f) < 0) return 0; - while ((r = cg_read_pid(f, &npid)) > 0) { + while (cg_read_pid(f, &npid) > 0) { if (npid == pid) continue; |