From be3b6b6fe551c2e709cfb329694408eb9b393eb5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 19 Oct 2023 18:40:10 +0900 Subject: [PATCH] cgroup-util: drop dead code block Follow-up for 4d1b2df199227ed4b934bbcb054364e92e93a1a6. Fixes CID#1522888. --- src/basic/cgroup-util.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 5caf85f443..74aee40f6a 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. */ -- 2.25.1