selftests/seccomp: Use bitwise instead of arithmetic operator for flags
authorZou Wei <zou_wei@huawei.com>
Wed, 15 Apr 2020 04:15:01 +0000 (12:15 +0800)
committerKees Cook <keescook@chromium.org>
Tue, 8 Sep 2020 23:26:45 +0000 (16:26 -0700)
commita23042882ff29ae2df04f46ac0d4c50f66e7e497
tree1651c0bb38233d1a5411df139e1e1baf99cad481
parent2d9ca267a944c2b6ed5b4d750b1cf0407b6262b4
selftests/seccomp: Use bitwise instead of arithmetic operator for flags

This silences the following coccinelle warning:

"WARNING: sum of probable bitmasks, consider |"

tools/testing/selftests/seccomp/seccomp_bpf.c:3131:17-18: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3133:18-19: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3134:18-19: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3135:18-19: WARNING: sum of probable bitmasks, consider |

Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1586924101-65940-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_bpf.c