selftests/bpf: Fix warning comparing pointer to 0
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 10 Mar 2021 06:22:46 +0000 (14:22 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 10 Mar 2021 21:37:11 +0000 (13:37 -0800)
commit04ea63e34a2ee85cfd38578b3fc97b2d4c9dd573
treee8c2919bd0614697ec28edfec6b5e7e600543824
parentc1acda9807e2bbe1d2026b44f37d959d6d8266c8
selftests/bpf: Fix warning comparing pointer to 0

Fix the following coccicheck warning:

./tools/testing/selftests/bpf/progs/test_global_func10.c:17:12-13:
WARNING comparing pointer to 0.

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/1615357366-97612-1-git-send-email-jiapeng.chong@linux.alibaba.com
tools/testing/selftests/bpf/progs/test_global_func10.c