selftests/bpf: Fix u32 variable compared with less than zero
authorKang Minchul <tegongkang@gmail.com>
Sat, 5 Nov 2022 18:36:56 +0000 (03:36 +0900)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 8 Nov 2022 00:53:50 +0000 (16:53 -0800)
commite8f50c4f0c14214b6430b8b3493654a286681a2b
treeb4dc095e11a69e157af6b94a5c5ac7f446f7f970
parent25906092edb4bcf94cb669bd1ed03a0ef2f4120c
selftests/bpf: Fix u32 variable compared with less than zero

Variable ret is compared with less than zero even though it was set as u32.
So u32 to int conversion is needed.

Signed-off-by: Kang Minchul <tegongkang@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/r/20221105183656.86077-1-tegongkang@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/xskxceiver.c