From: Yu Watanabe Date: Thu, 19 Oct 2023 09:40:10 +0000 (+0900) Subject: cgroup-util: drop dead code block X-Git-Tag: v255-rc1~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be3b6b6fe551c2e709cfb329694408eb9b393eb5;p=thirdparty%2Fsystemd.git cgroup-util: drop dead code block Follow-up for 4d1b2df199227ed4b934bbcb054364e92e93a1a6. Fixes CID#1522888. --- diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 5caf85f4438..74aee40f6a5 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -367,13 +367,6 @@ static int cg_kill_items( } } - if (r < 0) { - if (ret >= 0) - return r; - - return ret; - } - /* To avoid racing against processes which fork * quicker than we can kill them we repeat this until * no new pids need to be killed. */