]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup: drop unused parameter from function
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Nov 2017 18:37:01 +0000 (19:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 25 Nov 2017 16:08:21 +0000 (17:08 +0100)
src/core/cgroup.c

index ec8d89f0c206f7f995e99c1edd3b3f75f53801a7..8ae63e861583ebb9fdb591eb2bb0e065e139223e 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;
@@ -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) {