]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup-util: drop dead code block
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Oct 2023 09:40:10 +0000 (18:40 +0900)
committerMike Yuan <me@yhndnzj.com>
Thu, 19 Oct 2023 12:24:54 +0000 (20:24 +0800)
Follow-up for 4d1b2df199227ed4b934bbcb054364e92e93a1a6.

Fixes CID#1522888.

src/basic/cgroup-util.c

index 5caf85f443865cf99b23a1b19ecaeacc8faac75a..74aee40f6a5b54ee075d99e326df69ff66ff8432 100644 (file)
@@ -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. */