Skip to content
Commit e8f50c4f authored by Kang Minchul's avatar Kang Minchul Committed by Martin KaFai Lau
Browse files

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: default avatarKang Minchul <tegongkang@gmail.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarBjörn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/r/20221105183656.86077-1-tegongkang@gmail.com


Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent 25906092
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment