summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-24 19:37:01 +0100
committerSven Eden <yamakuzure@gmx.net>2017-11-24 19:37:01 +0100
commit4ab04f56e2bcb7e6564bd3d6126518d196cbdfef (patch)
tree7e7ae6f4fc5aea59c9f395e15ab9783357374573 /src
parent5de3124cd51bc02de562e41cc26ab47224a4a624 (diff)
cgroup: drop unused parameter from function
Diffstat (limited to 'src')
-rw-r--r--src/core/cgroup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index f3abf6595..550742fb6 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;
@@ -1032,7 +1034,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) {