2022-03-24 23:25:19

by Martin KaFai Lau

[permalink] [raw]
Subject: Re: [PATCH] selftests/bpf: Fix warning comparing pointer to 0

On Thu, Mar 24, 2022 at 10:08:45AM +0800, Haowen Bai wrote:
> Avoid pointer type value compared with 0 to make code clear.
Which compiler version that warns ?
I don't see it with the latest llvm-project from github.

The patch lgtm.

Acked-by: Martin KaFai Lau <[email protected]>


2022-03-25 18:48:43

by baihaowen

[permalink] [raw]
Subject: 答复: [PATCH] selftests/bpf: Fix warning comp aring pointer to 0

hi, kafai

./scripts/coccicheck report this warning.
________________________________________
??????: Martin KaFai Lau <[email protected]>
????ʱ??: 2022??3??25?? 4:28:48
?ռ???: ?׺???
????: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
????: Re: [PATCH] selftests/bpf: Fix warning comparing pointer to 0

On Thu, Mar 24, 2022 at 10:08:45AM +0800, Haowen Bai wrote:
> Avoid pointer type value compared with 0 to make code clear.
Which compiler version that warns ?
I don't see it with the latest llvm-project from github.

The patch lgtm.

Acked-by: Martin KaFai Lau <[email protected]>