Re: [PATCH] selftests/bpf: Simplify the calculation of variables

From: Yonghong Song
Date: Wed Mar 03 2021 - 13:38:29 EST




On 3/2/21 11:52 PM, Jiapeng Chong wrote:
Fix the following coccicheck warnings:

./tools/testing/selftests/bpf/test_sockmap.c:735:35-37: WARNING !A || A
&& B is equivalent to !A || B.

Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>