Re: [PATCH v2] selftests/bpf: Fix unsigned expression compared with zero

From: Kang Minchul
Date: Sat Nov 05 2022 - 12:22:52 EST


2022년 11월 6일 (일) 오전 1:16, Randy Dunlap <rdunlap@xxxxxxxxxxxxx>님이 작성:
>
> Hi--
>
> On 11/5/22 03:25, Kang Minchul wrote:
> > Variable ret is compared with zero even though it was set as u32.
>
> It's OK to compare a u32 == to zero, but 'ret' is compared to < 0,
> which it cannot be. Better explanation here would be good.
> Thanks.
> ~Randy

Thanks for your kind feedback!
I guess I have to change the message more precisely.
I'll send the amended patch (PATCH v3) as you mentioned.

Regards,

Kang Minchul