From 89983335b31fd00087c0518f7ab97b918eb4c299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 29 Jul 2025 11:04:30 +0200 Subject: [PATCH] core/cgroup: drop useless wrapper --- src/core/cgroup.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 64bbcadd8f..f6b0c5deea 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);