chiark / gitweb /
cgroup: drop unused parameter from function
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Nov 2017 18:37:01 +0000 (19:37 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Nov 2017 18:37:01 +0000 (19:37 +0100)
src/core/cgroup.c

index f3abf659531c9cda7e85f07fc913260449751248..550742fb62565ecadf99b8a28e5312b585691cf2 100644 (file)
@@ -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) {