From: Mike Yuan Date: Sat, 1 Jun 2024 22:37:08 +0000 (+0800) Subject: core/cgroup: use > 0 comparison rather than == 1 X-Git-Tag: v257-rc1~1014^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8153be97c46dec725fdfaa3358d518ce350bb2ec;p=thirdparty%2Fsystemd.git core/cgroup: use > 0 comparison rather than == 1 --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 19028b810ba..bb78ded3eb2 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -3549,7 +3549,7 @@ bool unit_maybe_release_cgroup(Unit *u) { * failed) we need the cgroup paths to continue to be tracked by the manager so they can be looked up * and cleaned up later. */ r = unit_cgroup_is_empty(u); - if (r == 1) { + if (r > 0) { unit_release_cgroup(u); return true; }