From 0f2d84d2ccda91bb1c1d9a5f24bfeab136e195eb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 24 Nov 2017 19:37:01 +0100 Subject: [PATCH] cgroup: drop unused parameter from function --- src/core/cgroup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index ec8d89f0c2..8ae63e8615 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -677,9 +677,11 @@ static void cgroup_apply_unified_memory_limit(Unit *u, const char *file, uint64_ "Failed to set %s: %m", file); } -static void cgroup_apply_firewall(Unit *u, CGroupContext *c) { +static void cgroup_apply_firewall(Unit *u) { int r; + assert(u); + if (u->type == UNIT_SLICE) /* Skip this for slice units, they are inner cgroup nodes, and since bpf/cgroup is * not recursive we don't ever touch the bpf on them */ return; @@ -1031,7 +1033,7 @@ static void cgroup_context_apply( } if (apply_bpf) - cgroup_apply_firewall(u, c); + cgroup_apply_firewall(u); } CGroupMask cgroup_context_get_mask(CGroupContext *c) { -- 2.25.1