selftests/bpf: Simplify the calculation of variables
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 9 Feb 2021 08:46:38 +0000 (16:46 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 10 Feb 2021 20:14:27 +0000 (12:14 -0800)
commitbd2d4e6c6e9f0186967252e8c7ab29a23c3db9cf
treeeb142c353c340f0f5afbb3b28f339894a9b4ecc9
parent45df3052682564327acc0a0fdb0f9adc3a27a50b
selftests/bpf: Simplify the calculation of variables

Fix the following coccicheck warnings:

./tools/testing/selftests/bpf/xdpxceiver.c:954:28-30: WARNING !A || A &&
B is equivalent to !A || B.

./tools/testing/selftests/bpf/xdpxceiver.c:932:28-30: WARNING !A || A &&
B is equivalent to !A || B.

./tools/testing/selftests/bpf/xdpxceiver.c:909:28-30: WARNING !A || A &&
B is equivalent to !A || B.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1612860398-102839-1-git-send-email-jiapeng.chong@linux.alibaba.com
tools/testing/selftests/bpf/xdpxceiver.c