]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/seccomp.c
bpf: drop unnecessary context cast from BPF_PROG_RUN
[mirror_ubuntu-artful-kernel.git] / kernel / seccomp.c
index 0db7c8a2afe2fb531fe390d78ff9bb435c992077..bff9c774987ad259f0b79b6022ab4f7b8e17d639 100644 (file)
@@ -195,7 +195,7 @@ static u32 seccomp_run_filters(const struct seccomp_data *sd)
         * value always takes priority (ignoring the DATA).
         */
        for (; f; f = f->prev) {
-               u32 cur_ret = BPF_PROG_RUN(f->prog, (void *)sd);
+               u32 cur_ret = BPF_PROG_RUN(f->prog, sd);
 
                if ((cur_ret & SECCOMP_RET_ACTION) < (ret & SECCOMP_RET_ACTION))
                        ret = cur_ret;