]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
samples/bpf: Remove unneeded variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 9 Dec 2021 08:00:51 +0000 (08:00 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 9 Dec 2021 17:21:45 +0000 (09:21 -0800)
commitac55b3f00c323cf09d59a191e14bcf39b691078c
treef8c5e046a3726f57c696a67258cb8b7964054414
parent73b6eae583f44e278e19489a411f9c1e22d530fc
samples/bpf: Remove unneeded variable

Return value directly instead of taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cm>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211209080051.421844-1-chi.minghao@zte.com.cn
samples/bpf/xdp_redirect_cpu.bpf.c