From: Zbigniew Jędrzejewski-Szmek Date: Tue, 29 Jul 2025 09:04:30 +0000 (+0200) Subject: core/cgroup: drop useless wrapper X-Git-Tag: v259-rc1~409^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89983335b31fd00087c0518f7ab97b918eb4c299;p=thirdparty%2Fsystemd.git core/cgroup: drop useless wrapper --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 64bbcadd8fc..f6b0c5deea2 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1454,12 +1454,6 @@ static void set_io_weight(Unit *u, uint64_t weight) { (void) set_attribute_and_warn(u, "io.weight", buf); } -static void cgroup_apply_bpf_foreign_program(Unit *u) { - assert(u); - - (void) bpf_foreign_install(u); -} - static void cgroup_context_apply( Unit *u, CGroupMask apply_mask, @@ -1609,7 +1603,7 @@ static void cgroup_context_apply( cgroup_apply_firewall(u); if (apply_mask & CGROUP_MASK_BPF_FOREIGN) - cgroup_apply_bpf_foreign_program(u); + (void) bpf_foreign_install(u); if (apply_mask & CGROUP_MASK_BPF_SOCKET_BIND) cgroup_apply_socket_bind(u);