diff options
author | Andrey Ignatov <rdna@fb.com> | 2019-12-19 10:44:34 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-20 08:22:25 +0300 |
commit | 9fab329d6a04c0a52a84d207b5e0d83aeb660aa0 (patch) | |
tree | 2a900b45ac2bb766aa58b589e9c2c6f2d8642f51 /kernel/bpf | |
parent | 1020c1f24a946e7d5d8a67db741b20efcd2cefc5 (diff) | |
download | linux-9fab329d6a04c0a52a84d207b5e0d83aeb660aa0.tar.xz |
bpf: Remove unused new_flags in hierarchy_allows_attach()
new_flags is unused, remove it.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/2c49b30ab750f93cfef04a1e40b097d70c3a39a1.1576741281.git.rdna@fb.com
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/cgroup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index e8cbdd1be687..283efe3ce052 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -103,8 +103,7 @@ static u32 prog_list_length(struct list_head *head) * if parent has overridable or multi-prog, allow attaching */ static bool hierarchy_allows_attach(struct cgroup *cgrp, - enum bpf_attach_type type, - u32 new_flags) + enum bpf_attach_type type) { struct cgroup *p; @@ -303,7 +302,7 @@ int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, /* invalid combination */ return -EINVAL; - if (!hierarchy_allows_attach(cgrp, type, flags)) + if (!hierarchy_allows_attach(cgrp, type)) return -EPERM; if (!list_empty(progs) && cgrp->bpf.flags[type] != flags) |